ceil

dragon.vm.tensorflow.math.ceil(
  x,
  name=None
)[source]

Compute the smallest integer not less than input.

\[\text{out} = \lceil \text{input} \rceil \]

Examples:

x = tf.constant([1.4, 1.7, 2.0])
print(tf.math.ceil(x))  # [2., 2., 2.]
Parameters:
  • x (dragon.Tensor) – The input tensor.
  • name (str, optional) – The operation name.
Returns:

dragon.Tensor – The output tensor.