当前位置:网站首页>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 !
边栏推荐
- MySQL blind note common functions
- QT's excellent articles
- Acwing-宠物小精灵之收服-(多维01背包+正序倒序+两种形式dp求答案)
- How to realize audit trail in particle counter software
- Threads and processes
- Day08 ternary operator extension operator character connector symbol priority
- Application of ultra pure water particle counter in electronic semiconductors
- [popular science] some interesting things that I don't know whether they are useful or not
- Significance and requirements of semiconductor particle control
- Day06 class variables instance variables local variables constant variables naming conventions
猜你喜欢

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

Altium Designer 19.1.18 - 更改铺铜的透明度

What is deep learning?

C language uses arrays to realize the intersection, union, difference and complement of sets

Nombre - 1. Création de tableaux

Numpy——1.数组的创建

Self summary of college life - freshman

About the problem that MySQL connector net cannot be cleared in MySQL

Close of office 365 reading

Altium Designer 19.1.18 - 隐藏某一个网络的飞线
随机推荐
Markdown tips
Altium designer 19.1.18 - clear information generated by measuring distance
solver. Learning notes of prototxt file parameters
Apple terminal skills
The sublime version that XP can run is 3114
About yolov3, conduct map test directly
使用go语言读取txt文件写入excel中
Nombre - 1. Création de tableaux
Apple input method optimization
Butterfly theme beautification - Page frosted glass effect
The number of occurrences of numbers in the offer 56 array (XOR)
万字详解八大排序 必读(代码+动图演示)
Threads and processes
Software designer: 03 database system
The browser cannot access Baidu
通过sql语句统计特定字段出现次数并排序
Embedded AI intelligent technology liquid particle counter
What is Bezier curve? How to draw third-order Bezier curve with canvas?
Opendrive arc drawing script
GBK error in web page Chinese display (print, etc.), solution