Open ozett opened 4 years ago
https://github.com/keras-team/keras/issues/12379#issuecomment-579672259
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?
got an error while creating databases on ubuntu 18.10 with latest tensorflow (pip-install)
AttributeError: module 'tensorflow' has no attribute 'get_default_graph
'any hint to resolve this?