Torch.cuda.is_available() 不断切换到 False [英] Torch.cuda.is_available() keeps switching to False

查看:29
本文介绍了Torch.cuda.is_available() 不断切换到 False的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我尝试了几种解决方案,这些解决方案暗示了当 CUDA GPU 可用且安装了 CUDA 但 Torch.cuda.is_available() 返回 False 时该怎么做.他们确实提供了帮助,但只是暂时的,这意味着 torch.cuda-is_available() 报告了 True,但过了一段时间,它又切换回了 False.我使用的是 CUDA 9.0.176 和 GTX 1080.我应该怎么做才能获得永久效果?

我尝试了以下方法:

I have tried several solutions which hinted at what to do when the CUDA GPU is available and CUDA is installed but the Torch.cuda.is_available() returns False. They did help but only temporarily, meaning torch.cuda-is_available() reported True but after some time, it switched back to False. I use CUDA 9.0.176 and GTX 1080. What should I do to get the permanent effect?

I tried the following methods:

https://forums.fast.ai/t/torch-cuda-is-available-returns-false/16721/5 https://github.com/pytorch/pytorch/issues/15612

Note: When torch.cuda.is_available() works fine but then at some point switches to False, then I have to restart the computer and then it works again (for some time).

解决方案

Also with torch.cuda.is_available () had false.
But when installing the Nvidia driver to the most updated version 436.48, True is displayed. I previously updated Pytorch to 1.2.0. I have windows 10 and Anaconda.

这篇关于Torch.cuda.is_available() 不断切换到 False的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆