PyTorch get started:修订间差异
无编辑摘要 |
|||
第14行: | 第14行: | ||
</syntaxhighlight> | </syntaxhighlight> | ||
To verify: | |||
<syntaxhighlight lang="python"> | |||
import torch | |||
x = torch.rand(5, 3) | |||
print(x) | |||
</syntaxhighlight> | |||
[[Category:Deep Learning]] | [[Category:Deep Learning]] |
2023年12月11日 (一) 04:31的版本
Conda Installation
conda create --name deeplearning python=3.11
conda activate deeplearning
python --version
// 3.11.5
Install pytorch
conda install pytorch::pytorch torchvision torchaudio -c pytorch
To verify:
import torch
x = torch.rand(5, 3)
print(x)