{ }
Adds a constraint, which will be enforced during program execution.
tf.compat.v1.flags.register_validator(
flag_name,
checker,
message='Flag validation failed',
flag_values=_flagvalues.FLAGS
)
The constraint is validated when flags are initially parsed, and after each change of the corresponding flag's value.