Can not set num_workers>0

I’m running this code: find that if I set num_workers =2 / 4.After training for some time, the child process will be suspended, and the entire python program will be stuck, with no return value and no reaction. I was convinced that my CPU, memory, and GPU were sufficient for this experiment, and I wanted to know what I could do to solve the problem.