Anaconda安装的PyTorch在尝试访问GPU时抛出运行时错误
如上所述,我已经检查了我的gpu驱动程序 我的cuda版本和gpu驱动程序:Anaconda安装的PyTorch在尝试访问GPU时抛出运行时错误,anaconda,pytorch,Anaconda,Pytorch,如上所述,我已经检查了我的gpu驱动程序 我的cuda版本和gpu驱动程序: PyTorch 1.8.1 CUDA 11.1.1 cudnn8.0 一些评论—(A)在问题中添加“请帮助”之类的内容是不必要的,也是不鼓励的。这是一个问答网站,所有人在这里的全部原因是帮助。(b) 您的问题不是CUDA编程问题。您已经展示了您有一个运行正常的驱动程序,很明显,您的问题与PyTorch或它运行的环境有关。这就是为什么我用我的方式编辑了你的问题,为什么它应该保持这种方式。谢谢你,我是新来的,我不知道标准
- PyTorch 1.8.1
- CUDA 11.1.1
- cudnn8.0
**~\anaconda3\lib\site-packages\torch\cuda\__init__.py in _lazy_init()
168 # This function throws if there's a driver initialization error, no GPUs
169 # are found or any other error occurs
170 torch._C._cuda_init()
171 # Some of the queued calls may reentrantly call _lazy_init();
172 # we need to just return without initializing in that c**ase.
RuntimeError: CUDA driver initialization failed, you might not have a CUDA gpu.