Skip to content
Snippets Groups Projects
Commit d7b8c597 authored by Eric Hambro's avatar Eric Hambro
Browse files

Fix big resulting in double resets.

parent 9fbdfecb
No related branches found
No related tags found
No related merge requests found
...@@ -46,8 +46,6 @@ def run_batched_rollout(batched_env, agent): ...@@ -46,8 +46,6 @@ def run_batched_rollout(batched_env, agent):
returns[i] += r returns[i] += r
for done_idx in np.where(dones)[0]: for done_idx in np.where(dones)[0]:
observations[done_idx] = batched_env.single_env_reset(done_idx)
if active_envs[done_idx]: if active_envs[done_idx]:
# We were 'counting' this episode # We were 'counting' this episode
all_returns.append(returns[done_idx]) all_returns.append(returns[done_idx])
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment