Skip to content

Commit

Permalink
amend
Browse files Browse the repository at this point in the history
  • Loading branch information
vmoens committed Feb 15, 2024
1 parent 11910e8 commit d84f13e
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions test/test_env.py
Original file line number Diff line number Diff line change
Expand Up @@ -2551,8 +2551,11 @@ def make_env(seed, device=device):
p_env = ParallelEnv(
2, [functools.partial(make_env, seed=0), functools.partial(make_env, seed=seed)]
)
r_parallel = p_env.rollout(10, policy)
assert not r_parallel.exclude("action").requires_grad
try:
r_parallel = p_env.rollout(10, policy)
assert not r_parallel.exclude("action").requires_grad
finally:
p_env.close()


if __name__ == "__main__":
Expand Down

0 comments on commit d84f13e

Please sign in to comment.