随笔分类 -  科研日常

没错,日常就是Debug....
摘要:错误原因: 训练保存模型时,torch的版本是1.6.0(使用torch.__version__可以查看torch的版本号) 而加载模型时,torch的版本号低于1.6.0 解决方案: If for any reason you want torch.save to use the old form 阅读全文
posted @ 2020-10-20 09:43 不学无墅_NKer 阅读(12282) 评论(0) 推荐(0)
摘要:错误描述: RuntimeError: Attempting to deserialize object on a CUDA device but torch.cuda.is_available() is False. If you are running on a CPU-only machine 阅读全文
posted @ 2020-10-19 19:16 不学无墅_NKer 阅读(15370) 评论(0) 推荐(0)
摘要:Pytorch使用CPU运行“Torch not compiled with CUDA enabled” https://blog.csdn.net/demo_jie/article/details/107358836 AttributeError: 'Tensor' object has no a 阅读全文
posted @ 2020-07-22 20:19 不学无墅_NKer 阅读(645) 评论(0) 推荐(0)