AttributeError: module 'tensorflow' has no attribute 'disable_v2_behavior' tensorflow 2.1.0 code example
Example: AttributeError: module 'tensorflow' has no attribute 'placeholder'
#replace import tensorflow as tf by following
import tensorflow.compat.v1 as tf
tf.disable_v2_behavior()