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.