module ‘tensorflow‘ has no attribute ‘placeholder‘
# import tensorflow as tf改为
import tensorflow.compat.v1 as tf
tf.compat.v1.disable_eager_execution()
# import tensorflow as tf改为
import tensorflow.compat.v1 as tf
tf.compat.v1.disable_eager_execution()