DataLoader num_workers > 0 causes CPU memory from parent process to be replicated in all worker...
Editor note: There is a known workaround further down on this issue, which is to NOT use Python lists, but instead using something else, e.g., torch.tensor directly. See #13246 (comment) . You can ...