mindspore.mint.ceil
- mindspore.mint.ceil(input)[source]
Rounds a tensor up to the closest integer element-wise.
- Parameters
input (Tensor) – The input tensor.
- Returns
Tensor
- Supported Platforms:
Ascend
Examples
>>> import mindspore >>> input = mindspore.tensor(([1.1, 2.5, -1.5])) >>> output = mindspore.mint.ceil(input) >>> print(output) [ 2. 3. -1.]