diff --git a/tensordict/base.py b/tensordict/base.py index 877fc7f95..867b687da 100644 --- a/tensordict/base.py +++ b/tensordict/base.py @@ -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