如何将 Tensorflow 版本 1 转换为 onnx 模型?
How could I convert Tensorflow version 1 to onnx model?
我试过了python -m tf2onnx.convert --saved-model [file_name] --output [onnx_file_name]
。但是 tensorflow = 2.4.4
自动是 运行。
我想要 运行 tensorflow version 1 代码。这个代码有选项吗?
You can install TensorFlow version 1, I also trying to use
tf.compat.v1.layers that also work with the result . You may need to
use model.save to have .pb format and convert by the program.
我用了python -m tf2onnx.convert --saved-model [model file] --output [onnx file name].onnx --opset 13
我解决了
我试过了python -m tf2onnx.convert --saved-model [file_name] --output [onnx_file_name]
。但是 tensorflow = 2.4.4
自动是 运行。
我想要 运行 tensorflow version 1 代码。这个代码有选项吗?
You can install TensorFlow version 1, I also trying to use tf.compat.v1.layers that also work with the result . You may need to use model.save to have .pb format and convert by the program.
我用了python -m tf2onnx.convert --saved-model [model file] --output [onnx file name].onnx --opset 13
我解决了