我是靠谱客的博主 怕孤独黄豆,这篇文章主要介绍attributeerror:module ‘torch.cuda’ has no attribute ‘reset_peak_memory_stats’,现在分享给大家,希望可以做个参考。
报错信息:attributeerror:module ‘torch.cuda’ has no attribute ‘reset_peak_memory_stats’
应该又是版本不适配的问题。因为用的是RTX3090显卡,只支持CUDA11.0版本及以上。
解决方法:在终端中输入以下命令重新安装pytorch
Pip3 install torch==1.9.0+cu111 torchvision==0.10.0+cu111 torchaudio==0.9.0 -f https://download.pytorch.org/whl/torch_stable.html
最后
以上就是怕孤独黄豆最近收集整理的关于attributeerror:module ‘torch.cuda’ has no attribute ‘reset_peak_memory_stats’的全部内容,更多相关attributeerror:module内容请搜索靠谱客的其他文章。
本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
发表评论 取消回复