跑实验的时候,发现有cuda和pytorch不匹配的情况,报错如下所示:
UserWarning: CUDA initialization: The NVIDIA driver on your system is too old (found version 10010). Please update your GPU driver by downloading and installing a new version from the URL: http://www.nvidia.com/Download/index.aspx Alternatively, go to: https://pytorch.org to install a PyTorch version that has been compiled with your version of the CUDA driver. (Triggered internally at ../c10/cuda/CUDAFunctions.cpp:112.)
解决方法很简单,直接在下面找对应的语句即可。
Previous PyTorch Versions | PyTorch
https://pytorch.org/get-started/previous-versions/
在运行实验时遇到CUDA版本过旧(10.1.0)的问题,导致与PyTorch版本不兼容。为解决此问题,需更新GPU驱动或安装与当前CUDA版本相匹配的PyTorch版本。用户可以访问官方网址下载最新驱动,或者根据链接选择适合的PyTorch版本进行安装。
8万+

被折叠的 条评论
为什么被折叠?



