import torch print(torch.__version__)
python -c "import torch; print(torch.__version__)"
torch.version.cuda