tf.compat.v1.flags.IntegerParser
Парсер целочисленного значения.
Наследуется от: ArgumentParser
tf.compat.v1.flags.IntegerParser(
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 | 'an' |
| number_name | 'integer' |
| syntactic_help | 'an integer' |
© 2022 The TensorFlow Authors. All rights reserved.
Licensed under the Creative Commons Attribution License 4.0.
Code samples licensed under the Apache 2.0 License.
https://www.tensorflow.org/versions/r2.9/api_docs/python/tf/compat/v1/flags/IntegerParser