TF 2.0 is out! Get hands-on practice at TF World, Oct 28-31. Use code TF20 for 20% off select passes. Register now

tf.compat.v1.flags.FloatParser

Class FloatParser

Parser of floating point values.

Aliases:

  • Class tf.compat.v1.app.flags.FloatParser

Parsed value may be bounded to a given upper and lower bound.

__init__

__init__(
    lower_bound=None,
    upper_bound=None
)

Initialize self. See help(type(self)) for accurate signature.

Methods

convert

convert(argument)

Returns the float value of argument.

flag_type

flag_type()

See base class.

is_outside_bounds

is_outside_bounds(val)

Returns whether the value is outside the bounds or not.

parse

parse(argument)

See base class.

Class Members

  • number_article = 'a'
  • number_name = 'number'
  • syntactic_help = 'a number'