Skip to content

Commit

Permalink
Fix a bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Ilya Kostrikov authored and Ilya Kostrikov committed Mar 3, 2020
1 parent d8c758d commit 84a7582
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 @@ -230,7 +230,7 @@ def __init__(self, venv, nstack, device=None):
def step_wait(self):
obs, rews, news, infos = self.venv.step_wait()
self.stacked_obs[:, :-self.shape_dim0] = \
self.stacked_obs[:, self.shape_dim0:]
self.stacked_obs[:, self.shape_dim0:].clone()
for (i, new) in enumerate(news):
if new:
self.stacked_obs[i] = 0
Expand Down

0 comments on commit 84a7582

Please sign in to comment.