tf.logical_xor(x, y, name='LogicalXor')

tf.logical_xor(x, y, name='LogicalXor')

See the guide: Control Flow > Logical Operators

x ^ y = (x | y) & ~(x & y).

Defined in tensorflow/python/ops/math_ops.py.