AttributeError: module 'tensorflow' has no attribute 'placeholder'

用import tensorflow.compat.v1 as tf
tf.disable_v2_behavior()
替换import tensorflow as tf

posted @ 2019-10-22 11:30  旅人_Eric  阅读(852)  评论(0编辑  收藏  举报