conda install pytorch 1.0.0 for cuda 10.2 code example
Example 1: get pytorch version
python -c "import torch; print(torch.__version__)"
Example 2: check cuda version pytorch
torch.version.cuda
python -c "import torch; print(torch.__version__)"
torch.version.cuda