mindspore.ops.bitwise_right_shift
- mindspore.ops.bitwise_right_shift(input, other)[source]
Perform a right bitwise shift operation on the input element-wise, where the number of bits to shift is specified by other.
- Parameters
- Returns
Tensor
- Supported Platforms:
Ascend
GPU
CPU
Examples
>>> import mindspore >>> input = mindspore.tensor([1, 2, 4, 8]) >>> mindspore.ops.bitwise_right_shift(input, 1) Tensor(shape=[4], dtype=Int64, value= [0, 1, 2, 4])