bitwise_xor

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

Compute the element-wise XOR bitwise operation.

\[\text{out} = x \oplus y \]

Examples:

x = tf.constant([False, True, False, True])
y = tf.constant([False, True, True, False])
print(tf.bitwise.bitwise_xor(x, y))  # False, False, True, True
print(x - y)  # Equivalent operation
Parameters:
  • x (dragon.Tensor) – The tensor \(x\).
  • y (dragon.Tensor) – The tensor \(y\).
  • name (str, optional) – A optional name for the operation.
Returns:

dragon.Tensor – The output tensor.