tf.compat.v1.flags.WhitespaceSeparatedListParser
Stay organized with collections
Save and categorize content based on your preferences.
Parser for a whitespace-separated list of strings.
Inherits From: BaseListParser
tf.compat.v1.flags.WhitespaceSeparatedListParser(
comma_compat=False
)
Args |
comma_compat
|
bool, whether to support comma as an additional separator.
If False then only whitespace is supported. This is intended only for
backwards compatibility with flags that used to be comma-separated.
|
Methods
flag_type
flag_type()
See base class.
parse
parse(
argument
)
Parses argument as whitespace-separated list of strings.
It also parses argument as comma-separated list of strings if requested.
Args |
argument
|
string argument passed in the commandline.
|
Returns |
[str], the parsed flag value.
|
Class Variables
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.
[null,null,["Last updated 2020-10-01 UTC."],[],[],null,["# tf.compat.v1.flags.WhitespaceSeparatedListParser\n\n\u003cbr /\u003e\n\nParser for a whitespace-separated list of strings.\n\nInherits From: [`BaseListParser`](../../../../tf/compat/v1/flags/BaseListParser)\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.WhitespaceSeparatedListParser`](/api_docs/python/tf/compat/v1/flags/WhitespaceSeparatedListParser)\n\n\u003cbr /\u003e\n\n tf.compat.v1.flags.WhitespaceSeparatedListParser(\n comma_compat=False\n )\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Args ---- ||\n|----------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `comma_compat` | bool, whether to support comma as an additional separator. If False then only whitespace is supported. This is intended only for backwards compatibility with flags that used to be comma-separated. |\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 argument\n )\n\nParses argument as whitespace-separated list of strings.\n\nIt also parses argument as comma-separated list of strings if requested.\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Args ||\n|------------|--------------------------------------------|\n| `argument` | string argument passed in the commandline. |\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Returns ||\n|---|---|\n| \\[str\\], the parsed flag value. ||\n\n\u003cbr /\u003e\n\nClass Variables\n---------------\n\n- `syntactic_help = ''`"]]