可能使用的是tensorflow 2.1 将tf.logging替换成tf.compat.v1.logging 同时将import tensorflow. as tf 改成import tensorflow.compat.v1 as tf