AttributeError: module ‘tensorflow’ has no attribute ‘get_default_graph’
原始代码:
tf.get_default_graph()
修改为:
tf.compat.v1.get_default_graph()
AttributeError: module ‘tensorflow’ has no attribute ‘get_default_graph’
原始代码:
tf.get_default_graph()
修改为:
tf.compat.v1.get_default_graph()