LogicalXorΒΆ

Compute the logical XOR operation elementwise.

Abstract Signature:

LogicalXor(x1: Tensor, x2: Tensor)

PyTorch

API: torch.logical_xor
Strategy: Direct Mapping

JAX (Core)

API: jax.numpy.logical_xor
Strategy: Infix (^)

NumPy

API: numpy.logical_xor
Strategy: Infix (^)

Keras

API: keras.ops.logical_xor
Strategy: Direct Mapping

TensorFlow

API: tf.math.logical_xor
Strategy: Direct Mapping