I have upgraded with tf_upgrade_v2 TF1 code to TF2. I\'m a noob with both. I got the next error:
RuntimeError: tf.placeholder() is not compatible with eager exec
I found an easy solution here: disable Tensorflow eager execution
Basicaly it is:
tf.compat.v1.disable_eager_execution()
With this, you disable the default activate eager execution and you don't need to touch the code much more.