version of pytorch code example
Example 1: get the torch version
import torch
print(torch.__version__)
Example 2: torch conda
conda install pytorch torchvision cudatoolkit=10.2 -c pytorch
import torch
print(torch.__version__)
conda install pytorch torchvision cudatoolkit=10.2 -c pytorch