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 28921aa commit 7548cd2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions tensordict/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -3041,6 +3041,7 @@ def map(
while len(out) < len(self_split):
print('out', out)
out.append(imap.next(timeout=5.0))
print(out[-1]['c'])
# out = pool.map(fn, self_split, chunksize)
out = torch.cat(out, dim)
return out
Expand Down
1 change: 1 addition & 0 deletions test/test_tensordict.py
Original file line number Diff line number Diff line change
Expand Up @@ -6568,6 +6568,7 @@ def test_map_seed(self):
{
"r": torch.zeros(20, dtype=torch.int),
"s": torch.zeros(20, dtype=torch.int),
"c": torch.arange(20),
},
batch_size=[20],
)
Expand Down

0 comments on commit 7548cd2

Please sign in to comment.