bitwise_or

dragon.bitwise.bitwise_or(
  inputs,
  **kwargs
)[source]

Compute the element-wise OR bitwise operation.

\[\text{out} = \text{input1} \mathbin{|} \text{input2} \]

Examples:

a = dragon.constant([False, True, False, True])
b = dragon.constant([False, True, True, False])
print(dragon.bitwise.bitwise_or([a, b]))  # False, True, True, True
print(a + b)  # Equivalent operation
Parameters:
  • inputs (Sequence[dragon.Tensor]) – The input1 and input2 tensor.
Returns:

dragon.Tensor – The output tensor.