RuntimeError: CUDA error: invalid device ordinal Compile with TORCH_USE_CUDA_DSA to enable device-side assertions 出错原因:代码使用的cuda名称与实际自己电脑上的不一致 将 改为: