tf.compat.v1.flags.mark_flags_as_required

Ensures that flags are not None during program execution.

Compat aliases for migration

See Migration guide for more details.

`tf.compat.v1.app.flags.mark_flags_as_required`

If your module might be imported by others, and you only wish to make the flag required when the module is directly executed, call this method like this::

if __name__ == '__main__':
  flags.mark_flags_as_required(['flag1', 'flag2', 'flag3'])
  app.run()

flag_names Sequence[str | FlagHolder], names or holders of the flags.
flag_values flags.FlagValues, optional FlagValues instance where the flags are defined.

AttributeError If any of flag name has not already been defined as a flag.