AttributeError: module 'tensorflow' has no attribute 'placeholder' code example
Example: AttributeError: module 'tensorflow' has no attribute 'placeholder' site:stackoverflow.com
import tensorflow.compat.v1 as tf
tf.disable_v2_behavior()
import tensorflow.compat.v1 as tf
tf.disable_v2_behavior()