快捷方式

torchrl.trainers.algorithms.configs.envs_libs.GymEnvConfig

class torchrl.trainers.algorithms.configs.envs_libs.GymEnvConfig(_partial_: bool = False, env_name: str = '???', categorical_action_encoding: bool = False, from_pixels: bool = False, pixels_only: bool = True, frame_skip: int = 1, device: str = 'cpu', batch_size: list[int] | None = None, allow_done_after_reset: bool = False, convert_actions_to_numpy: bool = True, missing_obs_value: Any = None, disable_env_checker: bool | None = None, render_mode: str | None = None, num_envs: int = 0, backend: str = 'gymnasium', _target_: str = 'torchrl.trainers.algorithms.configs.envs_libs.make_gym_env')[源代码]

GymEnv 环境的配置。

文档

访问全面的 PyTorch 开发者文档

查看文档

教程

为初学者和高级开发者提供深入的教程

查看教程

资源

查找开发资源并让您的问题得到解答

查看资源