How to fix “AttributeError: module ‘tensorflow’ has no attribute ‘get_default_graph'”?

Please try:

from tensorflow.keras.models import Sequential

instead of

from keras.models import Sequential

Leave a Comment