bitwise_not¶
- paddle. bitwise_not ( x, out=None, name=None ) [source]
- 
         It operates bitwise_noton TensorX.\[Out = \sim X\]- Parameters
- 
           - x (Tensor) – Input Tensor of - bitwise_not. It is a N-D Tensor of bool, uint8, int8, int16, int32, int64
- out (Tensor) – Result of - bitwise_not. It is a N-D Tensor with the same data type of input Tensor
 
- Returns
- 
           Result of bitwise_not. It is a N-D Tensor with the same data type of input Tensor
- Return type
- 
           Tensor 
 Examples import paddle x = paddle.to_tensor([-5, -1, 1]) res = paddle.bitwise_not(x) print(res) # [4, 0, -2] 
