tf2onnx' has no attribute 'save_model'
时间: 2023-10-04 21:04:20 浏览: 118
mdk_armcc_user_guide.pdf
This error message suggests that the 'save_model' function is not defined in the 'tf2onnx' module. This could be due to a version mismatch or a missing package.
To resolve this issue, you can try updating the 'tf2onnx' module to the latest version using the following command:
```
pip install --upgrade tf2onnx
```
If the issue persists, you can try importing the 'save_model' function from the 'tf2onnx.tools' module instead of the 'tf2onnx' module:
```
from tf2onnx.tools import save_model
```
Then, you can use the 'save_model' function to save the converted model in the ONNX format.
阅读全文