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

24 lines
800 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.RightShift
=========================
.. py:class:: mindspore.ops.RightShift
将Tensor `input_x` 的每个元素右移 Tensor `input_y` 中对应位数。输入为两个Tensor数据类型需要保持一致他们之间的shape可以广播。
.. math::
\begin{aligned}
&out_{i} =x_{i} >> y_{i}
\end{aligned}
输入:
- **input_x** (Tensor) - 被操作Tensor将被逐元素位右移y位。
- **input_y** (Tensor) - 右移位数。数据类型必须和 `input_x` 一致。
输出:
- **output** (Tensor) - 输出Tensor据类型和 `input_x` 一致。
异常:
- **TypeError** - `input_x` 或者 `input_y` 不是Tensor。
- **TypeError** - `input_x``input_y` 不能发生广播。