-
Notifications
You must be signed in to change notification settings - Fork 42
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
Run error #17
Comments
@mobilegmyt You will need to disable eager execution for this to work, in addition to the compatibility with version 1. Like so:
|
I also got
|
Make sure that the line is using the compat.v1 alias. Did you try tf.compat.v1.reset_default_graph()? |
File "app.py", line 62, in <module> saver = tf.compat.v1.train.import_meta_graph(model) File "C:\Users\Michael\AppData\Roaming\Python\Python38\site-packages\tensorflow\python\training\saver.py", line 1460, in import_meta_graph return _import_meta_graph_with_return_elements(meta_graph_or_file, File "C:\Users\Michael\AppData\Roaming\Python\Python38\site-packages\tensorflow\python\training\saver.py", line 1472, in _import_meta_graph_with_return_elements raise RuntimeError("Exporting/importing meta graphs is not supported when " RuntimeError: Exporting/importing meta graphs is not supported when eager execution is enabled. No graph exists when eager execution is enabled.
The text was updated successfully, but these errors were encountered: