安装的PyTorch的cuda版本过低,假如硬件的cuda版本是116,软件的cuda版本需要至少安装113版本,否则会报错。
版本安装连接:https://pytorch.org/get-started/previous-versions/
可以选择安装:pip install torch==1.8.1+cu111 torchvision==0.9.1+cu111 torchaudio==0.8.1 -f https://download.pytorch.org/whl/torch_stable.html