module ‘tensorflow‘ has no attribute ‘placeholder‘
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()