if context.executing_eagerly(): raise RuntimeError("tf.placeholder() is not compatible with " code example
Example: python RuntimeError: tf.placeholder() is not compatible with eager execution.
tf.compat.v1.disable_eager_execution()
tf.compat.v1.disable_eager_execution()