快捷方式

parallel_env_constructor

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

返回一個並行環境,該環境由使用相應解析器建構函式構建的 argparse.Namespace 生成。

引數:
  • cfg (DictConfig) – 包含使用者定義引數的配置

  • kwargs – 用於 transformed_env_constructor 方法的關鍵字引數。

文件

訪問 PyTorch 的全面開發者文件

檢視文件

教程

獲取面向初學者和高階開發者的深入教程

檢視教程

資源

查詢開發資源並獲得問題解答

檢視資源