{RuntimeError}Attempting to deserialize object on a CUDA device but torch.cuda.is_available() is Fal

根本原因:torch和cuda或者是cudnn版本不匹配
详细教程可以参考我前边的文章
https://blog.csdn.net/weixin_39417324/article/details/122090285

你可能感兴趣的:(python,pytorch,pytorch,深度学习,神经网络)