当前位置:   article > 正文

RuntimeError: Trying to resize storage that is not resizable at ..\aten\src\TH\THStorageFunctions.cp

runtimeerror: trying to resize storage that is not resizable

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

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/weixin_40725706/article/detail/359677
推荐阅读
相关标签
  

闽ICP备14008679号