Skip to content

Commit

Permalink
amend
Browse files Browse the repository at this point in the history
  • Loading branch information
matteobettini committed Sep 4, 2024
1 parent b807bb7 commit ac5e5ef
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions torchrl/envs/libs/vmas.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,10 +96,9 @@ def _vmas_to_torchrl_spec_transform(
)
elif isinstance(spec, gym_spaces.Dict):
spec_out = {}
for k in spec.keys():
key = k
for key in spec.keys():
spec_out[key] = _vmas_to_torchrl_spec_transform(
spec[k],
spec[key],
device=device,
categorical_action_encoding=categorical_action_encoding,
)
Expand Down

0 comments on commit ac5e5ef

Please sign in to comment.