Solution 11
TensorFlow, “‘module’ object has no attribute ‘placeholder’”
Instead of tf.placeholder(shape=[None, 2], dtype=tf.float32)
use something like tf.compat.v1.placeholder(shape=[None, 2], dtype=tf.float32)
if you don't want to disable v2 completely.