错误信息:RuntimeError: DataLoader worker (pid 26129) exited unexpectedly with exit code 127. Details are lost due to multiprocessing. Rerunning with num_workers=0 may give better error trace.
这里参考了别人的一些做法,把num_workers设为0就不会报错了
这个bug改好了又出现了下面这个问题:
python: symbol lookup error: /home/***/***/lib/python3.6/site-packages/torch/lib/libtorch_python.so: undefined symbol: PySlice_Unpack
这里据说是python版本的bug,之前我的python版本为3.6.0,后来改为3.6.3完美运行!