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

23 lines
488 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.Inv
=================
.. py:class:: mindspore.ops.Inv()
按元素计算输入Tensor的倒数。
.. math::
out_i = \frac{1}{x_{i} }
**输入:**
**x** (Tensor) - 任意维度的Tensor。数据类型必须是float16、float32或int32。
**输出:**
Tensorshape和数据类型与 `x` 相同。
**异常:**
- **TypeError** - `x` 不是Tensor。
- **TypeError** - `x` 的数据类型不是float16、float32或int32。