Pytorch Torch Bitwise_Not
# PyTorch torch.bitwise_not Function
* * PyTorch torch Reference Manual](#)
`torch.bitwise_not` is a PyTorch function for element-wise bitwise NOT operation.
### Function Definition
torch.bitwise_not(input, *, out=None)
* * *
## Example Usage
## Example
import torch
# Bitwise NOT Example
x = torch.tensor([0,1,2,3], dtype=torch.int8)
result = torch.bitwise_not(x)
print(result)# tensor([-1, -2, -3, -4], dtype=int8)
* * PyTorch torch Reference Manual](#)
YouTip