W3cubDocs

/TensorFlow 2.3

tf.compat.v1.flags.EnumClassFlag

Basic enum flag; its value is an enum class's member.

Inherits From: Flag

Attributes
value

Methods

flag_type

Returns a str that describes the type of the flag.

Note: we use strings, and not the types.*Type constants because our flags can have more exotic types, e.g., 'comma separated list of strings', 'whitespace separated list of strings', etc.

parse

Parses string and sets flag value.

Args
argument str or the correct flag value type, argument to be parsed.

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.3/api_docs/python/tf/compat/v1/flags/EnumClassFlag