Have a question? Connect with the community at the TensorFlow Forum Visit Forum

tf.compat.v1.control_flow_v2_enabled

Returns True if v2 control flow is enabled.