import tensorflow.compat.v1 as tf
tf.disable_v2_behavior()
tensorflow2.x降级1.x:
sudo pip install tensorflow==1.14
import tensorflow.compat.v1 as tf
tf.disable_v2_behavior()
tensorflow2.x降级1.x:
sudo pip install tensorflow==1.14