当前位置:网站首页>Anaconda related
Anaconda related
2022-04-22 04:08:00 【Fishing alone in the cold river snow】
torch, torchvision, python The version corresponds to
Anaconda Prompt Creating a virtual environment
conda env list # View the created virtual environment
conda create -n mytorch python=3.9 # Create a new virtual environment
conda activate mytorch # Enter the virtual environment
conda deactivate # Exit virtual environment
conda remove -n mytorch --all # Delete virtual environment
test Anaconda Is the installation successful ?
stay
CMDType inpythonCheck to see if there is Python Environmental Science , stayCMDType inconda -VCheck to see if there is conda Environmental Science .
install pytorch
Install from the official website pytorch Too slow , So we configure the Tsinghua image source .
stay Anaconda Prompt In the virtual environment created :
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main/
conda config --set show_channel_urls yes
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/pytorch/
# conda install pytorch
conda install pytorch torchvision torchaudio cpuonly -c pytorch # Get rid of the back -c pytorch, It means downloading from the official website , Instead of downloading from Tsinghua mirror source
AMD Graphics card installation CPU edition
- stay
Device managerView inDisplay adapterCtrl+shift+escseeperformance- AMD Update the driver on the official website →
Drive and support→ Choose your own graphics card modelAMD Radeon (TM) R9 M375→ Submit → downloadThe driver→ Installation- Check the driver of the graphics card :
Control panel→Hardware and sound→Device manager→Display adapter→attribute→The driver- Use
condafrom Installation of Tsinghua image CPU Version ofpytorch
NVIDIA Graphics card installation GPU edition
cuda install & cudnn install & pytorch install
Check pytorch Is the installation successful ?
type python Get into python Interpreter
>>>import torch
>>>torch.__version__ # see torch Current version number
'1.11.0'
# pytorch GPU edition
>>>torch.version.cuda # Compile the current version of torch The use of cuda Version number
'11.3'
>>>torch.cuda.is_available() # View the current cuda Whether it can be used in the current version of Torch, If the output True, Is available
True
uninstall pytorch
Use conda uninstall pytorch
conda uninstall pytorch
conda uninstall libtorch
Use pip uninstall Pytorch
pip uninstall torch
CUDA & CUDNN
CUDA(ComputeUnified Device Architecture) It's the video card manufacturer NVIDIA The new computing platform . CUDA It's a kind of NVIDIA General parallel computing architecture , The architecture enables GPU Able to solve complex computing problems .
NVIDIA cuDNN It is used for deep neural network GPU Acceleration Library , Want to be in CUDA Run deep neural network on , Just install cuDNN.
Check GPU Do you support CUDA?
Ctrl+Alt+DeleteopenTask manager> performance >GPU>intel(R)HDGraphics 5500+AMD+AMD Radeon (TM) R9 M375I won't support it CUDA
版权声明
本文为[Fishing alone in the cold river snow]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204220402277858.html
边栏推荐
- Data cleaning chapter05 | data grouping and data imbalance
- js动态生成table表格,加滚动条
- Zhongshanghui ⺠ evolution of trading platform architecture: response to Apache shardingsphere
- Sumo tutorial - Highway
- 10-Personalized Top-N Sequential Recommendation via Convolutional Sequence Embedding论文详解
- Solution to write protection of WinXP U disk that cannot be copied
- 【近日力扣】验证二叉搜索树+将有序数组转换为二叉搜索树
- win11系统开机后没有输入法——解决方法亲测有效
- 探究Presto SQL引擎(2)-浅析Join
- 调用函数时,关于传参那些事~
猜你喜欢

2022-04-21:给定一个包含 [0,n) 中不重复整数的黑名单 blacklist, 写一个函数从 [0, n) 中返回一个不在 blacklist 中的随机整数, 对它进行优化使其尽量少调用系

SeNet || 注意力机制——源代码+注释

DO447Ansible Tower导航

Autodesk Genuine Service2020删除

染色法判定二分图

Principle of average bilateral locking strategy

What is the future direction of GPU?

Autodesk genuine Service 2020 Supprimer

On the origin of wireless operation and maintenance and project construction

LeetCode_ Rectangle_ Difficulties_ 391. Perfect rectangle
随机推荐
Convenience stores are crazy: convenience bee, Rosen and Yijie "fierce battle"
射频微波设计软件
2022-04-21:给定一个包含 [0,n) 中不重复整数的黑名单 blacklist, 写一个函数从 [0, n) 中返回一个不在 blacklist 中的随机整数, 对它进行优化使其尽量少调用系
SQL statements used occasionally
Senior vice president of Apple hardware technology revealed that self-developed M1 is too difficult
matplotlib画3dbox
Mysql8 hard disk version installation configuration
[network experiment] / host / router / switch / gateway / Routing Protocol / rip + OSPF / DHCP
[recent force deduction] verify binary search tree + convert ordered array into binary search tree
2022-04-21: given a blacklist containing non repeating integers in [0, n), write a function to return a random integer not in the blacklist from [0, n), and optimize it to minimize the number of calls
OpenSCA版本升级 | OpenSCA v1.0.4版本发布
sumo教程——公共交通教程
Header song answer (string basic operation)
Sumo tutorial - Highway
Facing opportunities and challenges in the development of smart watches
Go gin framework configuration log output to file
Sub database and sub table
Tutorial - sumolympics
你的指针学到什么层次了?8个指针题目让你加深对指针的理解(下)-O-
Sumo circle driving