You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
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
The text was updated successfully, but these errors were encountered: