tf.compat.v1.enable_eager_execution

Enables eager execution for the lifetime of this program.

Migrate to TF2

This function is not necessary if you are using TF2. Eager execution is enabled by default.