当前位置:网站首页>Record the torch encountered by win10 cuda. is_ False problem in available()
Record the torch encountered by win10 cuda. is_ False problem in available()
2022-07-05 07:49:00 【Fall in love with wx】
This article computer configuration
Win10+Anaconda+CUDA10.1+cudnn7.6.5
I used the following command on the official website
conda install pytorch==1.7.1 torchvision==0.8.2 torchaudio==0.7.2 cudatoolkit=10.1
Loading PyTorch Encountered after running :
AssertionError: Torch not compiled with CUDA enabled
I found some solutions on the Internet :
1. Upgrade the graphics card driver ;
2. l / drop torch edition
But it didn't work out , Finally, I use conda list After the discovery
pytorch 1.10.0 py3.7_cpu_0
This shows that what I installed is cpu edition
Combined with the posts of other bloggers , I guess it occurred to me because conda Automatic installation is cpu edition , But I didn't find it in the mirror website cudnn7.6 Version correspondence PyTorch, I'm lazy again , Not reinstalled cudnn, So in PyTorch Continue to read the installation instructions , I found that in addition to conda command , You can also use pip Mode of installation , So I just use the command to install
pip install torch==1.7.1+cu101 torchvision==0.8.2+cu101 torchaudio==0.7.2 -f https://download.pytorch.org/whl/torch_stable.html
Specific connections :PyTorch Official website
Then test
>>> import torch
>>>> print(torch.cuda.is_available())
True
Successful installation gpu Version of PyTorch!
I hope it's never too late to learn , Now learn from Mu Shen PyTorch, I hope the scientific research can go smoothly !
边栏推荐
- Deepin, help ('command ') output saved to file
- Thunderbird tutorial \ easy to use mail client
- Global and Chinese market of quenching furnaces 2022-2028: Research Report on technology, participants, trends, market size and share
- Cadence learning records
- 大学生活的自我总结-大一
- Process (P) runs, and idle is different from pycharm
- Let me teach you how to develop a graphic editor
- MLPerf Training v2.0 榜单发布,在同等GPU配置下百度飞桨性能世界第一
- Global and Chinese market of peeled bourdon tubes 2022-2028: Research Report on technology, participants, trends, market size and share
- [popular science] some interesting things that I don't know whether they are useful or not
猜你喜欢

Self summary of college life - freshman

Altium Designer 19.1.18 - 导入板框

II Simple NSIS installation package

找不到实时聊天软件?给你推荐电商企业都在用的!

Altium designer 19.1.18 - change the transparency of copper laying

UE5热更新-远端服务器自动下载和版本检测(SimpleHotUpdate)

Altium designer 19.1.18 - Import frame

MySql——存储引擎

With the help of Navicat for MySQL software, the data of a database table in different or the same database link is copied to another database table

How to modify the file path of Jupiter notebook under miniconda
随机推荐
Typecho adds Baidu collection (automatic API submission plug-in and crawler protocol)
TCP and UDP
Opendrive record
Batch modify the txt file code to UTF-8 (notepad++)
About yolov3, conduct map test directly
A series of problems in offline installation of automated test environment (ride)
Use of orbbec Astra depth camera of OBI Zhongguang in ROS melody
Embedded AI intelligent technology liquid particle counter
Apple terminal skills
Day08 ternary operator extension operator character connector symbol priority
.NET服务治理之限流中间件-FireflySoft.RateLimit
Ads usage skills
SQL JOINS
Let me teach you how to develop a graphic editor
PIL's image tool image reduction and splicing.
Altium designer 19.1.18 - change the transparency of copper laying
Distinction between heap and stack
Function of static
Apple modify system shortcut key
Ads learning record (lna_atf54143)