tensorflow2.0没有get_default_graph(),Session等方法:
tf.compat.v1.get_default_graph()
tf.compat.v1.Session()
即:tf.compat.v1.方法(兼容v1版本的)
tensorflow2.0没有get_default_graph(),Session等方法:
tf.compat.v1.get_default_graph()
tf.compat.v1.Session()
即:tf.compat.v1.方法(兼容v1版本的)