bitwise_or¶
- dragon.vm.torch.- bitwise_or(
 input,
 other,
 out=None
 )[source]¶
- Compute the element-wise OR bitwise operation. \[\text{out} = \text{input} \mathbin{|} \text{other} \]- Examples: - a = torch.tensor([0, -1, 2, -3, 4]) b = torch.tensor([-4, 3, -2, 1, 0]) print(torch.bitwise_or(a, b)) # [-4, -1, -2, -3, 4] - Parameters:
- input (dragon.vm.torch.Tensor) – The first input tensor.
- other (dragon.vm.torch.Tensor) – The second input tensor.
- out (dragon.vm.torch.Tensor, optional) – The output tensor.
 
 - Returns:
- dragon.vm.torch.Tensor – The output tensor. 
 
