报警解决‘User provided device_type of \‘cuda\‘, but CUDA is not available. Disabling‘
报警解决'User provided device_type of \'cuda\', but CUDA is not available. Disabling'
·
复现nnunet-v1的代码,一直报警,

很多文章说是cuda torch 版本冲突了,各种命令查询版本。
一:pip list

二:nvidia-smi,

三:nvcc -V

整改措施:
1- pip uninstall torch
2- pip uninstall torchvision
3- pip install torch torchvision torchaudio
更改之后如下:
四:pip list

总结:很奇怪,为什么卸载重新安装之后,报警就消失了呢?
版本并没有变化啊。
期待大神的解读。
更多推荐



所有评论(0)