I guess it won’t be working to share the same dict, as it would be copied. Did you try to replace it and run the code snippet?


If you can preload the data, you could use it directly in a Dataset and the DataLoader would then create copies of it for each worker.