onnx-tensorflow icon indicating copy to clipboard operation
onnx-tensorflow copied to clipboard

onnx2tf.py problem

Open Kevin-Wei-Chih opened this issue 3 years ago • 1 comments

Traceback (most recent call last): File "onnx2tf.py", line 13, in file.write(output.graph.as_graph_def().SerializeToString()) AttributeError: 'NoneType' object has no attribute 'as_graph_def'

My environment

  • Python version: 3.8.10
  • onnx version: 1.9.0
  • onnx-tf version:1.8.0
  • onnxruntime version:1.7.0
  • tensorflow-gpu version: 2.5.0

When I run onnx2tf.py , I encounter this error. Do anyone know what is the correct version I should used under tensorflow 2.5.0? Thanks

Kevin-Wei-Chih avatar Sep 10 '21 14:09 Kevin-Wei-Chih

The error seems coming from custom source code, not from this converter. Please provide complete onnx2tf.py and the onnx file if you want to get more help.

chinhuang007 avatar Sep 10 '21 15:09 chinhuang007