Thanks for the fast reply, but I am not sure how this can help me. I do not want to share a dataset between multiple workers of a DataLoader. What I would need is to share a Dataset between subprocesses where each subprocess has its own dataloader, independent of the others.
Could I somehow make the Dataset accessible in shared memory and then build my dataloader inside the subprocess routine?