tf.compat.v1.flags.FloatParser
Парсер значений с плавающей точкой.
Наследуется от: ArgumentParser
tf.compat.v1.flags.FloatParser(
lower_bound=None, upper_bound=None
)
Значение, которое было обработано, может быть ограничено заданными верхним и нижним пределами.
Методы
convert
convert(
argument
)
Возвращает число с плавающей точкой аргумента.
flag_type
flag_type()
См. базовый класс.
is_outside_bounds
is_outside_bounds(
val
)
Возвращает, находится ли значение вне пределов.
parse
parse(
argument
)
См. базовый класс.
| Переменные класса | |
|---|---|
| number_article | 'a' |
| number_name | 'number' |
| syntactic_help | 'a number' |
© 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/FloatParser