cmusphinx / g2p-seq2seq

G2P with Tensorflow
Other
667 stars 196 forks source link

Anyone tried to convert frozen graph to onnx? #187

Closed hysaaron closed 3 years ago

hysaaron commented 4 years ago

Version

Tensorflow-1.8.0
tensor2tensor-1.6.6

I tried https://github.com/onnx/tensorflow-onnx Got:

2020-03-19 00:07:38,619 - ERROR - pass1 convert failed for name: "Iterator"
...
ValueError: You passed in an iterable attribute but I cannot figure out its applicable type.

Couldn't find inputs when summarize_graph the "frozen_graph".

Then I tried converting from meta graph using onnx_tf-1.1.2, and got:

in get_list_value
    raise ValueError("Unsupported Tensorflow attribute: {}".format(attr))
ValueError: Unsupported Tensorflow attribute: 

Is there a way converting it?