How to share data among multiple process?

I want to share data among multiple threads and each thread can contribute to the data and sample from the same data set. How can I achieve this in pytorch?

1 Like