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 9bf4f48 commit 82b668e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tensordict/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -3034,6 +3034,7 @@ def map(
raise ValueError(f"Got incompatible dimension {dim_orig}")

self_split = _split_tensordict(self, chunksize, num_chunks, num_workers, dim)
print('number of tds', len(self_split))
chunksize = 1
out = pool.imap(fn, self_split, chunksize)
out = torch.cat(list(out), dim)
Expand Down

0 comments on commit 82b668e

Please sign in to comment.