Skip to content

Commit

Permalink
Fix a bug in mask wrapper.
Browse files Browse the repository at this point in the history
  • Loading branch information
ikostrikov2 authored May 7, 2019
1 parent b4133ec commit 8258f95
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion a2c_ppo_acktr/envs.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ def reset(self, **kwargs):
class MaskGoal(gym.ObservationWrapper):
def observation(self, observation):
if self.env._elapsed_steps > 0:
observation[-2:0] = 0
observation[-2:] = 0
return observation


Expand Down

0 comments on commit 8258f95

Please sign in to comment.