用import tensorflow.compat.v1 as tf
tf.disable_v2_behavior()
替换import tensorflow as tf
本站文章如无特殊说明,均为本站原创,如若转载,请注明出处:AttributeError: module ‘tensorflow’ has no attribute ‘placeholder’ - Python技术站
用import tensorflow.compat.v1 as tf
tf.disable_v2_behavior()
替换import tensorflow as tf
本站文章如无特殊说明,均为本站原创,如若转载,请注明出处:AttributeError: module ‘tensorflow’ has no attribute ‘placeholder’ - Python技术站