当前位置:网站首页>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 !
边栏推荐
- Ten thousand words detailed eight sorting must read (code + dynamic diagram demonstration)
- Package ‘*****‘ has no installation candidate
- Global and Chinese market of peeled bourdon tubes 2022-2028: Research Report on technology, participants, trends, market size and share
- Set theory of Discrete Mathematics (I)
- Acwing-宠物小精灵之收服-(多维01背包+正序倒序+两种形式dp求答案)
- Day09 how to create packages import package naming conventions Alibaba Development Manual
- STM32 learning method
- Pagoda create multiple sites with one server
- Random function usage notes
- Altium designer 19.1.18 - Import frame
猜你喜欢
What is Bezier curve? How to draw third-order Bezier curve with canvas?
The folder directly enters CMD mode, with the same folder location
Ue5 hot update - remote server automatic download and version detection (simplehotupdate)
Software designer: 03 database system
The printer encountered an abnormal configuration problem 0x8007007e (win10)
Numpy——1.數組的創建
UE5热更新-远端服务器自动下载和版本检测(SimpleHotUpdate)
Altium designer 19.1.18 - hide the fly line of a network
Acwing - the collection of pet elves - (multidimensional 01 Backpack + positive and reverse order + two forms of DP for the answer)
Leetcode solution - number of islands
随机推荐
[MySQL] database knowledge record
String alignment method, self use, synthesis, newrlcjust
Apple input method optimization
Day09 how to create packages import package naming conventions Alibaba Development Manual
What is Bezier curve? How to draw third-order Bezier curve with canvas?
Ten thousand words detailed eight sorting must read (code + dynamic diagram demonstration)
Altium Designer 19.1.18 - 导入板框
C language uses arrays to realize the intersection, union, difference and complement of sets
RF ride side door processing of prompt box
Detour of Tkinter picture scaling
Readme, self study record
A complete set of indicators for the 10000 class clean room of electronic semiconductors
Summary of STM32 serial port sending and receiving data methods
Extended application of single chip microcomputer-06 independent key
Altium designer 19.1.18 - change the transparency of copper laying
Use go language to read TXT file and write it into Excel
Thunderbird tutorial \ easy to use mail client
The global and Chinese market of lithographic labels 2022-2028: Research Report on technology, participants, trends, market size and share
MySQL blind note common functions
Global and Chinese market of digital shore durometer 2022-2028: Research Report on technology, participants, trends, market size and share