pip install torch===1.5.0 torchvision===0.6.0 -f https://download.pytorch.org/whl/torch_stable.html
conda install pytorch torchvision cudatoolkit=10.2 -c pytorch
conda install pytorch torchvision torchaudio -c pytorch
import torch.autograd as autograd # computation graph
from torch import Tensor # tensor node in the computation graph
import torch.nn as nn # neural networks
import torch.nn.functional as F # layers, activations and more
import torch.optim as optim # optimizers e.g. gradient descent, ADAM, etc.
from torch.jit import script, trace # hybrid frontend decorator and tracing jit
from __future__ import print_function
import torch
x = torch.rand(5, 3)
print(x)
choco install python
CUDA-10.2 PyTorch builds are no longer available for Windows, please use CUDA-11.3