RuntimeError: Expected PyTorch version 1.4 but found version 1.13.
时间: 2024-05-08 13:15:09 浏览: 148
pytorch模型提示超出内存RuntimeError: CUDA out of memory.
5星 · 资源好评率100%
This error message indicates that the PyTorch version installed in your system is not compatible with the version required by the code you are trying to run.
To resolve this issue, you need to upgrade PyTorch to version 1.4 or higher. You can do this by running the following command in your terminal or command prompt:
```
pip install --upgrade torch
```
After upgrading PyTorch, try running your code again.
阅读全文