tf.compat.v1.flags.MultiFlag
Stay organized with collections
Save and categorize content based on your preferences.
A flag that can appear multiple time on the command-line.
Inherits From: Flag
tf.compat.v1.flags.MultiFlag(
*args, **kwargs
)
The value of such a flag is a list that contains the individual values
from all the appearances of that flag on the command-line.
See the doc for Flag for most behavior of this class. Only
differences in behavior are described here:
The default value may be either a single value or an iterable of values.
A single value is transformed into a single-item list of that value.
The value of the flag is always a list, even if the option was
only supplied once, and even if the default value is a single
value
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()
__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.
Last updated 2020-10-01 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 2020-10-01 UTC."],[],[],null,["# tf.compat.v1.flags.MultiFlag\n\n\u003cbr /\u003e\n\nA flag that can appear multiple time on the command-line.\n\nInherits From: [`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.MultiFlag`](/api_docs/python/tf/compat/v1/flags/MultiFlag)\n\n\u003cbr /\u003e\n\n tf.compat.v1.flags.MultiFlag(\n *args, **kwargs\n )\n\nThe value of such a flag is a list that contains the individual values\nfrom all the appearances of that flag on the command-line.\n\nSee the **doc** for Flag for most behavior of this class. Only\ndifferences in behavior are described here:\n\n- The default value may be either a single value or an iterable of values.\n A single value is transformed into a single-item list of that value.\n\n- The value of the flag is always a list, even if the option was\n only supplied once, and even if the default value is a single\n value\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### `__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."]]