Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
vmoens committed Feb 15, 2024
1 parent 2d01867 commit 70c1523
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions test/test_env.py
Original file line number Diff line number Diff line change
Expand Up @@ -2539,7 +2539,9 @@ def make_env(seed, device=device):
return env

serial_env = SerialEnv(
2, [functools.partial(make_env, seed=0), functools.partial(make_env, seed=seed)], device=device
2,
[functools.partial(make_env, seed=0), functools.partial(make_env, seed=seed)],
device=device,
)
r_serial = serial_env.rollout(10, policy)

Expand All @@ -2549,7 +2551,9 @@ def make_env(seed, device=device):
torch.testing.assert_close(g, g_serial)

p_env = ParallelEnv(
2, [functools.partial(make_env, seed=0), functools.partial(make_env, seed=seed)], device=device,
2,
[functools.partial(make_env, seed=0), functools.partial(make_env, seed=seed)],
device=device,
)
try:
r_parallel = p_env.rollout(10, policy)
Expand Down

0 comments on commit 70c1523

Please sign in to comment.