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()
posted @ 2022-05-11 16:49  星涅爱别离  阅读(134)  评论(0编辑  收藏  举报