Oct 20, 2024
Official Website
Select Operating System
Select Python Version
GPU Support (Linux/Windows)
conda create -n pytorch python=3.7
conda activate pytorch
python
import torch
x = torch.rand(3)
print(x)
torch.cuda.is_available()
false on non-GPU setups; should return true if CUDA toolkit and GPU support are correctly installed