问题描述:
在跑分类任务时间遇到以下错误:
UserWarning:NVIDIA Geforce RIX 3060 Laptop GPU with CUDA capability sm_86 is not compatible with the current PyTorch installation. The current PyTorch Instell supports CUDA capabilities sa_37 sm_50 sa_60 sm_61 se,70 sn_75 compute._37. If you want to use the NVIDIA Geforce RTX 3060 Laptop GU GPU with PyTorch, please check the instructions at http://pytorch.org/get-started/locally/
问题原因:
造成这一错误的原因是我的RTX3060的显卡和pytorch的版本不适配,pytorch的版本过低或者过高。
问题解决:
打开pycharm终端Termina激活pytorch虚拟环境,前面由base变成pytorch则激活成功。
键入conda list查看当前torch的版本如下:
可知当前python解释器的版本为3.8,torch的版本为1.10.0,cuda的版本为10.2