W3cubDocs

/TensorFlow 2.4

tf.compat.v1.flags.MultiFlag

A flag that can appear multiple time on the command-line.

Inherits From: Flag

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

Attributes
value

Methods

flag_type

See base class.

parse

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

Serializes the flag.

unparse

__eq__

Return self==value.

__ge__

Return a >= b. Computed by @total_ordering from (not a < b).

__gt__

Return a > b. Computed by @total_ordering from (not a < b) and (a != b).

__le__

Return a <= b. Computed by @total_ordering from (a < b) or (a == b).

__lt__

Return self<value.

© 2020 The TensorFlow Authors. All rights reserved.
Licensed under the Creative Commons Attribution License 3.0.
Code samples licensed under the Apache 2.0 License.
https://www.tensorflow.org/versions/r2.4/api_docs/python/tf/compat/v1/flags/MultiFlag