You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

mindspore.ops.Ceil.rst 513 B

12345678910111213141516171819202122
  1. mindspore.ops.Ceil
  2. ===================
  3. .. py:class:: mindspore.ops.Ceil
  4. 向上取整函数。
  5. .. math::
  6. out_i = \lceil x_i \rceil = \lfloor x_i \rfloor + 1
  7. **输入:**
  8. - **x** (Tensor) - Ceil的输入,任意维度的Tensor,秩应小于8。其数据类型为float16或float32。
  9. **输出:**
  10. Tensor,shape与 `x` 相同。
  11. **异常:**
  12. - **TypeError** - `x` 的不是Tensor。
  13. - **TypeError** - `x` 的数据类型既不是float16也不是float32。