Closed JimmyWhitaker closed 8 years ago
I wrote my own multi-threaded dataloader, and it runs into the same issue. I think the issue has something to do with the underlying FFT library and not this package.
Just answering my own issue here. It looks like the problem is in the underlying library fftw3 of the signal package not being thread-safe. Here is the fftw3 issue. It is supposedly fixed in 3.3.5, but I haven't tested it yet. As it does not pertain to the torch-dataset package, this issue can be closed.
Glad you figured it out!
When I call the signal library within a Processor function I get a Segmentation Fault. It seems that there is a memory conflict when making calls to a torch package that utilizes a C function.
As a quick example, here is a modification of CIFAR10 example provided:
There seems to be a race condition involved in this error also, because sometimes I get the Segmentation Fault and other times I get:
Any ideas on how to fix this?