Skip to content

Commit

Permalink
Revert "[Doc] Re-run tutorials (pytorch#381)" (pytorch#423)
Browse files Browse the repository at this point in the history
This reverts commit 0e06991.
  • Loading branch information
vmoens authored Sep 12, 2022
1 parent 0e06991 commit da02524
Show file tree
Hide file tree
Showing 7 changed files with 460 additions and 797 deletions.
6 changes: 1 addition & 5 deletions torchrl/envs/libs/gym.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,11 +92,7 @@ def _gym_to_torchrl_spec_transform(spec, dtype=None, device="cpu") -> TensorSpec


def _get_envs(to_dict=False) -> List:
if gym_version < version.parse("0.26.0"):
envs = gym.envs.registration.registry.env_specs.keys()
else:
envs = gym.envs.registration.registry.keys()

envs = gym.envs.registration.registry.env_specs.keys()
envs = list(envs)
envs = sorted(envs)
return envs
Expand Down
Loading

0 comments on commit da02524

Please sign in to comment.