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 b48db6f commit 11ff0a0
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tensordict/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -3036,8 +3036,9 @@ def map(
self_split = _split_tensordict(self, chunksize, num_chunks, num_workers, dim)
print('number of tds', len(self_split))
chunksize = 1
# out = pool.imap_unordered(fn, self_split, chunksize)
out = pool.map(fn, self_split, chunksize)
out = pool.imap_unordered(fn, self_split, chunksize)
# out = pool.map(fn, self_split, chunksize)
print('out', out)
out = torch.cat(list(out), dim)
return out

Expand Down

0 comments on commit 11ff0a0

Please sign in to comment.