Spec-Zone.ru › TensorFlow

tf.compat.v1.math.floor

Возвращает наибольшее целое число, не большее, чем x.

tf.compat.v1.math.floor(
    x, name=None
)

Диапазон входных значений — (-inf, inf), а диапазон выходных значений включает все целые значения.

Например:

x = tf.constant([1.3324, -1.5, 5.555, -2.532, 0.99, float("inf")])
tf.floor(x).numpy()
array([ 1., -2.,  5., -3.,  0., inf], dtype=float32)
Аргументы
x A Tensor. Должен быть одного из следующих типов: bfloat16, half, float32, float64.
name Имя операции (необязательно).
Возвращаемое значение
A Tensor. Имеет тот же тип, что и x.

© 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/api_docs/python/tf/compat/v1/math/floor

Spec-Zone.ru

Настройки Оффлайн Что нового Помощь О нас
Spec-Zone .ru
спецификации, руководства, описания, API