Shortcuts

parallel_env_constructor

torchrl.trainers.helpers.parallel_env_constructor(cfg: DictConfig, **kwargs) Union[ParallelEnv, EnvCreator][source]

Returns a parallel environment from an argparse.Namespace built with the appropriate parser constructor.

Parameters:
  • cfg (DictConfig) – config containing user-defined arguments

  • kwargs – keyword arguments for the transformed_env_constructor method.

Docs

Access comprehensive developer documentation for PyTorch

View Docs

Tutorials

Get in-depth tutorials for beginners and advanced developers

View Tutorials

Resources

Find development resources and get your questions answered

View Resources