bitwise_or

dragon.vm.tensorflow.bitwise.bitwise_or(
  x,
  y,
  name=None
)[source]

Compute the element-wise OR bitwise operation.

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

Examples:

x = tf.constant([False, True, False, True])
y = tf.constant([False, True, True, False])
print(tf.bitwise.bitwise_or(x, y))  # False, True, True, True
print(x + y)  # Equivalent operation
Parameters:
Returns:

dragon.Tensor The output tensor.