当前位置:网站首页>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
边栏推荐
- Yarn capacity scheduler settings
- 第六届“蓝帽杯”全国大学生网络安全技能大赛-初赛Writeup
- Unable to negotiate with port 51732: no matching host key type found. Their offer:
- Pywinauto+ an application (learn to lesson 9) -- blocked
- Chinese interpretation of notepad++ background color adjustment options
- sql实现连续登陆7天以上用户统计
- 数字藏品系统开发:NFT的主要特点有哪些?
- Development of digital collection system / introduction of digital collection scheme
- 数仓4.0笔记——数仓环境搭建—— Yarn配置
- 利用动态规划解决最长增长子序列问题
猜你喜欢

NFT trading platform digital collection system | development and customization

NFT digital collection development: what are the possible application scenarios of digital collections in the future?

数字藏品系统开发:企业布局元宇宙数字藏品

Development of digital collection system: enterprise layout meta universe digital collection

Entrepôt de données 4.0 Notes - acquisition de données commerciales

Custom MVC (Part 1)

NepCTF2022 Writeup
![[metric] use Prometheus to monitor flink1.13org.apache.flink.metrics](/img/9a/f6ef8de9943ec8e716388ae6620600.png)
[metric] use Prometheus to monitor flink1.13org.apache.flink.metrics
![[flick]flick on yarn's flick conf simplest configuration](/img/de/0ec23f3379148dba27fe77dc51e22f.png)
[flick]flick on yarn's flick conf simplest configuration

Basis of penetration test
随机推荐
Yarn容量调度器设置
Use require.context to complete batch import of local pictures
Some operations of composer
The difference between slice() and slice()
文件上传漏洞原理
Customized development of ant chain NFT digital collection DAPP mall system
mysql根据中文字段首字母排序
Quartz2.2 simple scheduling job
[uiautomation] key instructions (and three call methods) + common mouse actions +sendkeys+inspect learning
Window runs gradle build ----- stacktrace. Exception occurs when the file framework-4.3.0.build-snapshot-schema.zip is not found
mysql修改函数权限未生效
NFT数字藏品平台开发搭建,源码开发数字藏品
CTF web common software installation and environment construction
NepCTF 2022 MISC <签到题>(极限套娃)
Compilation principle - detailed explanation of syntax analysis
美联储理事沃勒:去中心化金融最终可能会改变传统金融市场
数字藏品开发/数字藏品系统开发解决方案
NFT数字藏品系统开发:徐悲鸿美术馆通过数字藏品平台亮相
NFT digital collection system development: Shenzhen Evening News "good times travel" digital collection online seconds chime
upload-lab第1~4关