tf.math.ceil
Stay organized with collections
Save and categorize content based on your preferences.
Return the ceiling of the input, element-wise.
tf.math.ceil(
x, name=None
)
For example:
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)>
Args |
x
|
A tf.Tensor . Must be one of the following types: bfloat16 , half ,
float32 , float64 . int32
|
name
|
A name for the operation (optional).
|
Equivalent to np.ceil
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates. Some content is licensed under the numpy license.
Last updated 2023-10-06 UTC.
[null,null,["Last updated 2023-10-06 UTC."],[],[],null,["# tf.math.ceil\n\n\u003cbr /\u003e\n\n|------------------------------------------------------------------------------------------------------------------------------|\n| [View source on GitHub](https://github.com/tensorflow/tensorflow/blob/v2.14.0/tensorflow/python/ops/math_ops.py#L5494-L5519) |\n\nReturn the ceiling of the input, element-wise.\n\n#### View aliases\n\n\n**Compat aliases for migration**\n\nSee\n[Migration guide](https://www.tensorflow.org/guide/migrate) for\nmore details.\n\n[`tf.compat.v1.ceil`](https://www.tensorflow.org/api_docs/python/tf/math/ceil), [`tf.compat.v1.math.ceil`](https://www.tensorflow.org/api_docs/python/tf/math/ceil)\n\n\u003cbr /\u003e\n\n tf.math.ceil(\n x, name=None\n )\n\n#### For example:\n\n tf.math.ceil([-1.7, -1.5, -0.2, 0.2, 1.5, 1.7, 2.0])\n \u003ctf.Tensor: shape=(7,), dtype=float32,\n numpy=array([-1., -1., -0., 1., 2., 2., 2.], dtype=float32)\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Args ---- ||\n|--------|-------------------------------------------------------------------------------------------------------------------------|\n| `x` | A [`tf.Tensor`](../../tf/Tensor). Must be one of the following types: `bfloat16`, `half`, `float32`, `float64`. `int32` |\n| `name` | A name for the operation (optional). |\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Returns ------- ||\n|---|---|\n| A [`tf.Tensor`](../../tf/Tensor). Has the same type as `x`. ||\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\nnumpy compatibility\n-------------------\n\n\u003cbr /\u003e\n\nEquivalent to np.ceil\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e"]]