module 'tensorflow' has no attribute 'enable_eager_execution' tensorflow 1.5 code example
Example: AttributeError: module 'tensorflow' has no attribute 'eagerly'
Eager execution is enabled by default in version 2.x
You can check that by using:
tf.executing_eagerly()