logical_xorΒΆ

Computes the logical XOR for each element x1_i of the input array x1 with the respective element x2_i of the input array x2.

Abstract Signature:

logical_xor(x1: Union[array, bool], x2: Union[array, bool])

JAX (Core)

API: jax.numpy.logical_xor
Strategy: Direct Mapping

NumPy

API: numpy.ma.core.logical_xor
Strategy: Direct Mapping

Keras

API: keras.ops.numpy.logical_xor
Strategy: Direct Mapping

TensorFlow

API: tf.math.logical_xor
Strategy: Direct Mapping

Flax NNX

API: jax.numpy.logical_xor
Strategy: Direct Mapping