chainerx.bitwise_xor

chainerx.bitwise_xor(x1, x2)

Compute the bit-wise XOR of two arrays element-wise.

Parameters
  • x1 (ndarray or scalar) – Input array of integers.

  • x2 (ndarray or scalar) – Input array of integers.

Returns

Returned array: \(y = x_1 \oplus x_2\)

Return type

ndarray

Note

During backpropagation, this function does not propagate gradients.