mindspore2022/docs/api/api_python/ops/mindspore.ops.Ceil.rst

22 lines
513 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:class:: mindspore.ops.Ceil
向上取整函数。
.. math::
out_i = \lceil x_i \rceil = \lfloor x_i \rfloor + 1
**输入:**
- **x** (Tensor) - Ceil的输入任意维度的Tensor秩应小于8。其数据类型为float16或float32。
**输出:**
Tensorshape与 `x` 相同。
**异常:**
- **TypeError** - `x` 的不是Tensor。
- **TypeError** - `x` 的数据类型既不是float16也不是float32。