随笔分类 - 科研日常
没错,日常就是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
阅读全文
摘要:错误描述: 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
阅读全文
摘要:Pytorch使用CPU运行“Torch not compiled with CUDA enabled” https://blog.csdn.net/demo_jie/article/details/107358836 AttributeError: 'Tensor' object has no a
阅读全文

浙公网安备 33010602011771号