From 11ff0a06918cd6db853da81a46e7c2c8b22b2fc0 Mon Sep 17 00:00:00 2001 From: vmoens Date: Wed, 22 Nov 2023 16:17:43 +0000 Subject: [PATCH] amend --- tensordict/base.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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