import torchprint(torch.__version__)#注意是雙下劃線>>>import torch>>>torch.version.cuda#輸出一個 cuda 版本torch.cuda.is_available()