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

requirements: tensorflow version or compatibility patch to ver1.x ? #6

Open
ozett opened this issue Aug 5, 2020 · 2 comments
Open

Comments

@ozett
Copy link

ozett commented Aug 5, 2020

got an error while creating databases on ubuntu 18.10 with latest tensorflow (pip-install)

AttributeError: module 'tensorflow' has no attribute 'get_default_graph'

image

any hint to resolve this?

@ozett
Copy link
Author

ozett commented Aug 5, 2020

keras-team/keras#12379
??

@ozett
Copy link
Author

ozett commented Aug 5, 2020

keras-team/keras#12379 (comment)

import tensorflow as tf
# sess = tf.compat.v1.Session(graph=tf.import_graph_def(), config=session_conf)
sess = tf.compat.v1.Session(graph=tf.compat.v1.get_default_graph(), config=session_conf)
tf.compat.v1.keras.backend.set_session(sess)

maybe this helps?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant