tf.compat.v1.enable_v2_behavior

Enables TensorFlow 2.x behaviors.

Migrate to TF2

This function is not necessary if you are using TF2. V2 behavior is enabled by default.