ceil¶
dragon.math.
ceil
(
inputs,
**kwargs
)[source]¶Compute the smallest integer not less than input.
\[\text{out} = \lceil \text{input} \rceil \]Examples:
x = dragon.constant([1.4, 1.7, 2.0]) print(dragon.math.ceil(x)) # [2., 2., 2.]
- Parameters:
- inputs (dragon.Tensor) – The input tensor.
- Returns:
dragon.Tensor – The output tensor.