tf.compat.v1.math.ceil
Возвращает верхнюю границу входного значения поэлементно.
tf.compat.v1.math.ceil(
x, name=None
)
Например:
tf.math.ceil([-1.7, -1.5, -0.2, 0.2, 1.5, 1.7, 2.0]) <tf.Tensor: shape=(7,), dtype=float32, numpy=array([-1., -1., -0., 1., 2., 2., 2.], dtype=float32)>
| Аргументы | |
|---|---|
x | A tf.Tensor. Должен быть одного из следующих типов: bfloat16, half, float32, float64. int32 |
name | Имя операции (необязательно). |
| Возвращает | |
|---|---|
A tf.Tensor. Имеет тот же тип, что и x. |
Совместимость с numpy
Эквивалентно np.ceil
© 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/ceil