Skip to content

Commit

Permalink
Bugfix in atari_il.py example (wrong type check) [ci skip]
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Panchenko committed Jul 28, 2024
1 parent f2d80cf commit 33e30b2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/offline/atari_il.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ def test_il(args: argparse.Namespace = get_args()) -> None:
space_info = SpaceInfo.from_env(env)
args.state_shape = space_info.observation_info.obs_shape
args.action_shape = space_info.action_info.action_shape
assert isinstance(args.state_shape, list[int] | tuple[int])
assert isinstance(args.state_shape, tuple | list)
assert len(args.state_shape) == 3
c, h, w = args.state_shape
# should be N_FRAMES x H x W
Expand Down

0 comments on commit 33e30b2

Please sign in to comment.