Search code examples
tensorflowonnxtensorflow1.15

How could I convert Tensorflow version 1 to onnx model?


I tried python -m tf2onnx.convert --saved-model [file_name] --output [onnx_file_name]. but It is run by tensorflow = 2.4.4 automatically. I want to run tensorflow version 1 code. Is this code have a option of it?


Solution

  • I used python -m tf2onnx.convert --saved-model [model file] --output [onnx file name].onnx --opset 13 and I solved it.