Skip to content

Commit

Permalink
Update test_gpu_envs.py
Browse files Browse the repository at this point in the history
  • Loading branch information
StoneT2000 committed Mar 3, 2024
1 parent 9705f1c commit 6766a0a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test_gpu_envs.py
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ def test_partial_resets(env_id):
for i in [1, 3, 4, 13]:
reset_mask[i] = True
reset_obs, _ = env.reset(options=dict(env_idx=env_idx[reset_mask]))
assert torch.isclose(obs[~reset_mask], reset_obs[~reset_mask]).all()
assert torch.isclose(obs[~reset_mask], reset_obs[~reset_mask], atol=1e-4).all()
assert not torch.isclose(
obs[reset_mask][:, :10], reset_obs[reset_mask][:, :10]
).any()
Expand Down

0 comments on commit 6766a0a

Please sign in to comment.