Skip to content

Commit

Permalink
Merge pull request #241 from cpnota/bugfix/atari-n-envs-1
Browse files Browse the repository at this point in the history
fix n-envs=1 atari bug
  • Loading branch information
cpnota committed Apr 19, 2021
2 parents ba0b7ec + da2620b commit 480071a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion all/bodies/atari.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ def process_state(self, state):
if 'life_lost' not in state:
return state

if len(state) == 1:
if len(state.shape) == 0:
if state['life_lost']:
return state.update('mask', 0.)
return state
Expand Down

0 comments on commit 480071a

Please sign in to comment.