当前位置:网站首页>Cuda10.0 configuration pytorch1.7.0+monai0.9.0
Cuda10.0 configuration pytorch1.7.0+monai0.9.0
2022-07-23 11:46:00 【xiav】
1. pytorch install
No corresponding cuda10.0 The order of , reinstall 10.2 It's too much trouble , Try to use 10.2 Of cudatoolkit, The results are feasible .
# CUDA 10.2 (10.0 It works , But if the command says cudatoolkit=10.0,pytorch yes cpu Version of , It's hard to change )
conda install pytorch==1.7.0 torchvision==0.8.0 torchaudio==0.7.0 cudatoolkit=10.2 -c pytorch
# test
python
import torch
x = torch.rand(5, 3)
print(x)
The output should be something similar to:
tensor([[0.3380, 0.3845, 0.3217],
[0.8337, 0.9050, 0.2650],
[0.2979, 0.7141, 0.9069],
[0.1449, 0.1132, 0.1375],
[0.4675, 0.3947, 0.1426]])
Additionally, to check if your GPU driver and CUDA is enabled and accessible by PyTorch, run the following commands to return whether or not the CUDA driver is enabled:
import torch
torch.cuda.is_available()

2. monai install
conda install numpy=1.21 (monai rely on numpy>=1.17,pytorch>=1.7.0)
pip install monai
# test
python
import monai
monai.config.print_config()

The test passed
边栏推荐
- NepCTF2022 Writeup
- NFT数字藏品系统开发:深圳晚报《美好时光遨游记》数字藏品上线秒磬
- 数字藏品系统开发:NFT的主要特点有哪些?
- 命令执行漏洞及防御
- Nepctf 2022 misc < check in question > (extreme doll)
- Data warehouse 4.0 notes - user behavior data collection III
- 数字藏品开发/数字藏品系统开发解决方案
- NFT digital collection system development: Xu Beihong Art Museum unveiled through the digital collection platform
- 數倉4.0筆記——業務數據采集
- 数仓4.0笔记——业务数据采集
猜你喜欢
随机推荐
Common bypass methods for file upload vulnerabilities
Shell takes the month within a certain time range
Digital collection development / digital collection system development solution
NFT digital collection system development: the combination of music and NFT
数字藏品系统开发:NFT的主要特点有哪些?
Data warehouse 4.0 notes - user behavior data collection II
Entrepôt de données 4.0 Notes - acquisition de données commerciales
Using dynamic programming to solve the longest growing subsequence problem
Accumulate SQL by date
mysql修改函数权限未生效
SQL labs 5-6 customs clearance notes
window运行gradle build -- --stacktrace出现找不到文件framework-4.3.0.BUILD-SNAPSHOT-schema.zip异常
The user logs in continuously (interruption is allowed) to query SQL
Goodbye if else
kubesphere HA install (二)
Development of digital collection system: enterprise layout meta universe digital collection
数仓4.0笔记——用户行为数据采集二
Man in the middle attacks ARP Spoofing and its linkage with beef XSS
NFT digital collection system development: Shenzhen Evening News "good times travel" digital collection online seconds chime
Data warehouse 4.0 notes - business data collection - sqoop








