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

22 lines
509 B
ReStructuredText
Raw Permalink 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.Floor
====================
.. py:class:: mindspore.ops.Floor
向下取整函数。
.. math::
out_i = \lfloor x_i \rfloor
**输入:**
- **x** (Tensor) - Floor的输入任意维度的Tensor秩应小于8。其数据类型必须为float16、float32。
**输出:**
Tensorshape与 `x` 相同。
**异常:**
- **TypeError** - `x` 的数据类型不是Tensor。
- **TypeError** - `x` 的数据类型不是float16、float32、float64。