Runtime error: CUDA error: no kernel image is available for execution on the device 一般是CUDA版本与torch版本不匹配 正确版本对应网址 Previous PyTorch Versions | PyTorch https://download.pytorch.org/whl/torch_stable.html