torch报错AssertionError: Torch not compiled with CUDA enabled解决方法 torch适配CUDA降版本、选择gpu版本最终方案
报错情况报错一在任意python文件下运行这几行命令print("是否可用:",torch.cuda.is_available())#查看GPU是否可用print("GPU数量:",torch.cuda.device_count())#查看GPU数量print("torch方法查看CUDA版本:",torch.version.cuda)#torch方法查看CUDA版本print("GPU索引号:"