description: Returns True if v2 control flow is enabled.

tf.compat.v1.control_flow_v2_enabled

Returns True if v2 control flow is enabled.

Note: v2 control flow is always enabled inside of tf.function.