AttributeError: module tensorflow has no attribute placeholder TensorFlow 2.0

This error may come if you have installed TensorFlow 2.0 and want to run code that is not compatible with TensorFlow 2.0 For example if you are trying to run below code, you will get the above error. x = tf.placeholder("float", None) The sample error is shown in the Image below Attribute Error TensorFlow 2.0 … Continue reading AttributeError: module tensorflow has no attribute placeholder TensorFlow 2.0

Advertisements