Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error with freezing graph #159

Closed
embie27 opened this issue Nov 3, 2018 · 1 comment
Closed

Error with freezing graph #159

embie27 opened this issue Nov 3, 2018 · 1 comment

Comments

@embie27
Copy link

embie27 commented Nov 3, 2018

When trying to freeze my trained model I get the following error:

Traceback (most recent call last):
  File "/home/emil/Dokumente/RaspberryPi/Francis/g2p-test/venv/bin/g2p-seq2seq", line 11, in <module>
    load_entry_point('g2p-seq2seq==6.2.2a0', 'console_scripts', 'g2p-seq2seq')()
  File "/home/emil/Dokumente/RaspberryPi/Francis/g2p-test/venv/local/lib/python2.7/site-packages/g2p_seq2seq-6.2.2a0-py2.7.egg/g2p_seq2seq/app.py", line 120, in main
    g2p_model.freeze()
  File "/home/emil/Dokumente/RaspberryPi/Francis/g2p-test/venv/local/lib/python2.7/site-packages/g2p_seq2seq-6.2.2a0-py2.7.egg/g2p_seq2seq/g2p.py", line 377, in freeze
    clear_devices=clear_devices)
  File "/home/emil/Dokumente/RaspberryPi/Francis/g2p-test/venv/local/lib/python2.7/site-packages/tensorflow/python/training/saver.py", line 1960, in import_meta_graph
    **kwargs)
  File "/home/emil/Dokumente/RaspberryPi/Francis/g2p-test/venv/local/lib/python2.7/site-packages/tensorflow/python/framework/meta_graph.py", line 744, in import_scoped_meta_graph
    producer_op_list=producer_op_list)
  File "/home/emil/Dokumente/RaspberryPi/Francis/g2p-test/venv/local/lib/python2.7/site-packages/tensorflow/python/util/deprecation.py", line 432, in new_func
    return func(*args, **kwargs)
  File "/home/emil/Dokumente/RaspberryPi/Francis/g2p-test/venv/local/lib/python2.7/site-packages/tensorflow/python/framework/importer.py", line 391, in import_graph_def
    _RemoveDefaultAttrs(op_dict, producer_op_list, graph_def)
  File "/home/emil/Dokumente/RaspberryPi/Francis/g2p-test/venv/local/lib/python2.7/site-packages/tensorflow/python/framework/importer.py", line 158, in _RemoveDefaultAttrs
    op_def = op_dict[node.op]
KeyError: u'IteratorV2'

My tensorflow version is 1.9.0, also tried with 1.8.0. tensor2tensor is 1.6.6.

@nshmyrev
Copy link
Contributor

nshmyrev commented Nov 3, 2018

Same as #149

@nshmyrev nshmyrev closed this as completed Nov 3, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants