tf.compat.v1.flags.MultiEnumClassFlag
Stay organized with collections
Save and categorize content based on your preferences.
A multi_enum_class flag.
Inherits From: MultiFlag
, Flag
View aliases
Compat aliases for migration
See
Migration guide for
more details.
`tf.compat.v1.app.flags.MultiEnumClassFlag`
tf.compat.v1.flags.MultiEnumClassFlag(
name, default, help_string, enum_class, case_sensitive=False, **args
)
See the doc for MultiFlag for most behaviors of this class. In addition,
this class knows how to handle enum.Enum instances as values for this flag
type.
Methods
flag_type
flag_type()
See base class.
parse
parse(
arguments
)
Parses one or more arguments with the installed parser.
Args |
arguments
|
a single argument or a list of arguments (typically a
list of default values); a single argument is converted
internally into a list containing one item.
|
serialize
serialize()
Serializes the flag.
unparse
unparse()
__bool__
__bool__()
__eq__
__eq__(
other
)
Return self==value.
__ge__
__ge__(
other, NotImplemented=NotImplemented
)
Return a >= b. Computed by @total_ordering from (not a < b).
__gt__
__gt__(
other, NotImplemented=NotImplemented
)
Return a > b. Computed by @total_ordering from (not a < b) and (a != b).
__le__
__le__(
other, NotImplemented=NotImplemented
)
Return a <= b. Computed by @total_ordering from (a < b) or (a == b).
__lt__
__lt__(
other
)
Return self<value.
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates. Some content is licensed under the numpy license.
Last updated 2022-09-07 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2022-09-07 UTC."],[],[],null,["# tf.compat.v1.flags.MultiEnumClassFlag\n\n\u003cbr /\u003e\n\nA multi_enum_class flag.\n\nInherits From: [`MultiFlag`](../../../../tf/compat/v1/flags/MultiFlag), [`Flag`](../../../../tf/compat/v1/flags/Flag)\n\n#### View aliases\n\n\n**Compat aliases for migration**\n\nSee\n[Migration guide](https://www.tensorflow.org/guide/migrate) for\nmore details.\n\n\\`tf.compat.v1.app.flags.MultiEnumClassFlag\\`\n\n\u003cbr /\u003e\n\n tf.compat.v1.flags.MultiEnumClassFlag(\n name, default, help_string, enum_class, case_sensitive=False, **args\n )\n\nSee the **doc** for MultiFlag for most behaviors of this class. In addition,\nthis class knows how to handle enum.Enum instances as values for this flag\ntype.\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Attributes ---------- ||\n|---------|---------------|\n| `value` | \u003cbr /\u003e \u003cbr /\u003e |\n\n\u003cbr /\u003e\n\nMethods\n-------\n\n### `flag_type`\n\n flag_type()\n\nSee base class.\n\n### `parse`\n\n parse(\n arguments\n )\n\nParses one or more arguments with the installed parser.\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Args ||\n|-------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `arguments` | a single argument or a list of arguments (typically a list of default values); a single argument is converted internally into a list containing one item. |\n\n\u003cbr /\u003e\n\n### `serialize`\n\n serialize()\n\nSerializes the flag.\n\n### `unparse`\n\n unparse()\n\n### `__bool__`\n\n __bool__()\n\n### `__eq__`\n\n __eq__(\n other\n )\n\nReturn self==value.\n\n### `__ge__`\n\n __ge__(\n other, NotImplemented=NotImplemented\n )\n\nReturn a \\\u003e= b. Computed by @total_ordering from (not a \\\u003c b).\n\n### `__gt__`\n\n __gt__(\n other, NotImplemented=NotImplemented\n )\n\nReturn a \\\u003e b. Computed by @total_ordering from (not a \\\u003c b) and (a != b).\n\n### `__le__`\n\n __le__(\n other, NotImplemented=NotImplemented\n )\n\nReturn a \\\u003c= b. Computed by @total_ordering from (a \\\u003c b) or (a == b).\n\n### `__lt__`\n\n __lt__(\n other\n )\n\nReturn self\\\u003cvalue."]]