第三方库 tensorflow 报错: graph = tf.get_default_graph() AttributeError: module ‘tensorflow’ has no attribute ‘get_default_graph’ 解决: tensorflow2.0以后版本不兼容旧版本,可以改为: graph = tf.compat.v1.get_default_graph()