Failed to convert tensorflow model to onnx

After installing onnx and onnxruntime, I’m trying to convert my custom tensorflow model with 1D CNN to onnx.

While I run the code os.system("python -m tf2onnx.convert --saved-model tf_model --output model.onnx"), I get output “256”…

I searched information as many as I can but still got the same error…

I really need your advices…


Hardware: Jetson nano developer kit b01 4GB ram
OS: ubuntu 18.04
python: manually installed 3.6.9
tensorflow: 2.7.0
tf2onnx: 1.14.0
onnx: 1.11.0
onnxruntime-gpu: 1.11.0

Hi,

“256” is a warning or an error.
Could you share the complete output log with us?

Thanks.

Here is the output log running in visual studio code.

I also run on terminal same code, I also got

I downgraded tf2onnx from 1.14.0 to 1.9.3 which is compatible for tensorflow 2.7.0