問題:torch.cuda.is_available()為False
查看當(dāng)前電腦cuda是否可用,代碼:文章來源:http://www.zghlxwxcb.cn/news/detail-433921.html
import torch
print(torch.__version__)
print(torch.cuda.is_available())
print(torch.version.cuda)
輸出:文章來源地址http://www.zghlxwxcb.cn/news/detail-433921.html
1.7.1+cpu
False
None
到了這里,關(guān)于windows 的torch.cuda.is_available()為False,安裝gpu版本的torch的文章就介紹完了。如果您還想了解更多內(nèi)容,請在右上角搜索TOY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!