Missed TensorFlow Dev Summit? Check out the video playlist. Watch recordings

tf.compat.v1.control_flow_v2_enabled

View source on GitHub

Returns True if v2 control flow is enabled.

tf.compat.v1.control_flow_v2_enabled()