Logger#
- torchrl.record.loggers.Logger(*args, use_ray_service=False, service_backend=None, service_backend_options=None, **kwargs)[source]#
A template for loggers.
- Keyword Arguments:
service_backend (str) – Deployment backend. One of
"direct","process", or"ray". Defaults to"direct".service_backend_options (dict, optional) – Backend options. Process services accept
context/mp_context,max_queue_size, andstartup_timeout. Ray services acceptactor_optionsandray_init_config.use_ray_service (bool) – If
True, the logger runs as a Ray actor in a separate process. Deprecated in favor ofservice_backend="ray"and scheduled for removal in v0.16. Defaults toFalse.ray_actor_options (dict, optional) – Options passed to
ray.remote()when creating the Ray actor (e.g.,{"num_cpus": 1}). Only used whenuse_ray_service=True.