Detected CUDA version (11.7) mismatches the version that was used to compile PyTorch (10.2)

torch c 扩展出现问题
Detected CUDA version (11.7) mismatches the version that was used to compile PyTorch (10.2)
Detected CUDA version (11.7) mismatches the version that was used to compile PyTorch (10.2)_第1张图片
直接把812行双引号括起来print
Detected CUDA version (11.7) mismatches the version that was used to compile PyTorch (10.2)_第2张图片
最后成功,同类问题直接看报错改文件

你可能感兴趣的:(DEBUG,pytorch,深度学习,人工智能)