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

19 lines
439 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.invert
====================
.. py:function:: mindspore.ops.invert(x)
对输入逐元素按位翻转。
.. math::
out_i = \sim x_{i}
参数:
- **x** (Tensor) - `x` 的shape为 :math:`(x_1, x_2, ..., x_R)`。其数据类型为int16或uint16。
返回:
Tensorshape和类型与输入相同。
异常:
- **TypeError** - `x` 的数据类型不为int16或uint16。