Skip to content

Commit

Permalink
amend
Browse files Browse the repository at this point in the history
  • Loading branch information
vmoens committed Nov 28, 2023
1 parent 77c2d6b commit 7928744
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions torchrl/envs/batched_envs.py
Original file line number Diff line number Diff line change
Expand Up @@ -1201,15 +1201,6 @@ def _run_worker_pipe_shared_mem(
event.synchronize()
mp_event.set()

# elif cmd == "step_and_maybe_reset":
# if not initialized:
# raise RuntimeError("called 'init' before step")
# i += 1
# td, root_next_td = env.step_and_maybe_reset(shared_tensordict.clone(False))
# next_shared_tensordict.update_(td.get("next"))
# root_shared_tensordict.update_(root_next_td)
# mp_event.set()

elif cmd == "close":
del shared_tensordict, data
if not initialized:
Expand Down

0 comments on commit 7928744

Please sign in to comment.