Skip to content

Commit

Permalink
amend
Browse files Browse the repository at this point in the history
  • Loading branch information
vmoens committed Nov 22, 2023
1 parent 80ee04f commit 2a4658e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tensordict/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -1726,6 +1726,8 @@ def _legacy_lazy(func):
# Process initializer for map
def _proc_init(base_seed, queue):
print('init worker', os.getpid())
if queue.empty():
exit()
worker_id = queue.get(timeout=10)
print('worker id', worker_id)
seed = base_seed + worker_id
Expand Down

0 comments on commit 2a4658e

Please sign in to comment.