PyTorch在CentOS中的兼容性問題及解決方法如下:
--index-url
gcc
openssl-devel
cudatoolkit
import torch
torch.cuda.is_available()
參考來源: