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

18 lines
447 B
ReStructuredText
Raw Normal View History

mindspore.ops.Reciprocal
=========================
.. py:class:: mindspore.ops.Reciprocal
返回输入Tensor的倒数。
.. math::
out_{i} = \frac{1}{x_{i}}
2022-07-26 16:39:37 +08:00
输入:
- **x** (Tensor) - Reciprocal的输入。shape :math:`(N, *)` ,其中 :math:`*` 表示任意数量的附加维度。
2022-07-26 16:39:37 +08:00
输出:
Tensorshape与 `x` 相同。
2022-07-26 16:39:37 +08:00
异常:
- **TypeError** - 如果 `x` 不是Tensor。