RuntimeError: Trying to resize storage that is not resizable at ..\aten\src\TH\THStorageFunctions.cp
如果在运行python,pyorch代码时出现RuntimeError: Trying to resize storage that is not resizable at …\aten\src\TH\THStorageFunctions.cpp:可能仅仅是因为你的num_works没有设置为0或者相应的显卡个数,即读取数据的线程与实际处理的线程不匹配...
原创
2021-01-05 15:50:47 ·
13247 阅读 ·
1 评论