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

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

Open
ChasingWind opened this issue Apr 16, 2020 · 0 comments

Comments

@ChasingWind
Copy link

I had this issue:
AttributeError: module 'tensorflow' has no attribute 'get_default_graph'
Then I asked for help online.I knowed tensorflow and keras may be not compatible .
So I replaced :
import keras
with :
from tensorflow import keras
replaced:
from keras.someing import someting
with:
from tensorflow .keras.someing import someting .
Then the issue changed:
from tensorflow.keras.layers import Dense, Dropout, Merge, Input
ImportError: cannot import name 'Merge
So what should I do to deal with is?What version of tf and keras do you use ? I use Keras 2.1.0 and tensorflow 2.1.0. How to deal with that tensorflow and keras arenot compatible ?
Looking forward to your reply.Thank you

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