Solved by wayi in post #2 
              
              
                To summarize, you have tried 3 approaches (as also suggested in this thread): 

Set num_workers=0 (i.e., self.config['Manager']['num_workers']=0) when calling DataLoader constructor;
Increase shared memory size;
Change the sharing strategy:

import torch.multiprocessing
torch.multiprocessing.set_sha…