mindspore/docs/api/api_python/ops/mindspore.ops.func_ceil.rst

20 lines
571 B
ReStructuredText
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

mindspore.ops.ceil
===================
.. py:function:: mindspore.ops.ceil(x)
向上取整函数。
.. math::
out_i = \lceil x_i \rceil = \lfloor x_i \rfloor + 1
参数:
- **x** (Tensor) - Ceil的输入。其数据类型为float16或float32。shape :math:`(N, *)` ,其中 :math:`*` 表示任意数量的附加维度。秩应小于8。
返回:
Tensorshape与 `x` 相同。
异常:
- **TypeError** - `x` 不是Tensor。
- **TypeError** - `x` 的数据类型既不是float16也不是float32。