[null,null,["Last updated 2024-04-26 UTC."],[],[],null,["# tf.compat.v1.flags.DEFINE\n\n\u003cbr /\u003e\n\nRegisters a generic Flag object. \n\n tf.compat.v1.flags.DEFINE(\n parser,\n name,\n default,\n help,\n flag_values=_flagvalues.FLAGS,\n serializer=None,\n module_name=None,\n required=False,\n **args\n )\n\n| **Note:** in the docstrings of all DEFINE\\* functions, \"registers\" is short for \"creates a new flag and registers it\".\n\nAuxiliary function: clients should use the specialized `DEFINE_\u003ctype\u003e`\nfunction instead.\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Args ---- ||\n|---------------|--------------------------------------------------------------------------------------------------------------------------------------|\n| `parser` | :class:`ArgumentParser`, used to parse the flag arguments. |\n| `name` | str, the flag name. |\n| `default` | The default value of the flag. |\n| `help` | str, the help message. |\n| `flag_values` | :class:`FlagValues`, the FlagValues instance with which the flag will be registered. This should almost never need to be overridden. |\n| `serializer` | :class:`ArgumentSerializer`, the flag serializer instance. |\n| `module_name` | str, the name of the Python module declaring this flag. If not provided, it will be computed using the stack trace of this call. |\n| `required` | bool, is this a required flag. This must be used as a keyword argument. |\n| `**args` | dict, the extra keyword args that are passed to `Flag.__init__`. |\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Returns ------- ||\n|---|---|\n| a handle to defined flag. ||\n\n\u003cbr /\u003e"]]