看下版本是否匹配,cuda版本和pytorch版本。cuda版本:打开cmd,输入
nvcc --version
Windows查看pytorch的版本
import torch print(torch.__version__) #注意是双下划线
然后发出来