tensorflow2.x向下兼容1.x命令

import tensorflow.compat.v1 as tf

tf.disable_v2_behavior()