AttributeError: module tensorflowhas no attribute placeholder

 報錯: x = tf.placeholder(dtype, shape=shape, name=name) AttributeError: module 'tensorflow' has no attribute 'placeholder' 查看當前tensorflow版本爲2.0。   報錯原因:tensorflow 2.0版本去掉了placeholder,而tensorflow 1.*版本才
相關文章
相關標籤/搜索