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或者相应的显卡个数,即读取数据的线程与实际处理的线程不匹配

你可能感兴趣的:(经验,python,pytorch,多线程)