Pytorch Torch Bitwise_Right_Shift
# PyTorch torch.bitwise_right_shift Function
* * PyTorch torch Reference Manual](#)
`torch.bitwise_right_shift` is a PyTorch function for element-wise right bit shifting.
### Function Definition
torch.bitwise_right_shift(input, other, *, out=None)
* * *
## Example Usage
## Example
import torch
# Right shift example
x = torch.tensor([2,4,6,8], dtype=torch.int8)
result = torch.bitwise_right_shift(x,1)
print(result)# tensor([1, 2, 3, 4], dtype=int8)
* * PyTorch torch Reference Manual](#)
YouTip