No, num_workers=0 means your data is loaded in the main process. You can still use the GPU although your code might be slower. Could you try to increase the shared memory and try setting num_workers>0 again?