BitwiseXor - 18


  • name: BitwiseXor (GitHub)

  • domain: main

  • since_version: 18

  • function: False

  • support_level: SupportType.COMMON

  • shape inference: True

This version of the operator has been available since version 18.


Returns the tensor resulting from performing the bitwise xor operation elementwise on the input tensors A and B (with Numpy-style broadcasting support).

This operator supports multidirectional (i.e., Numpy-style) broadcasting; for more details please check Broadcasting in ONNX.


  • A (heterogeneous) - T:

    First input operand for the bitwise operator.

  • B (heterogeneous) - T:

    Second input operand for the bitwise operator.


  • C (heterogeneous) - T:

    Result tensor.

Type Constraints

  • T in ( tensor(int16), tensor(int32), tensor(int64), tensor(int8), tensor(uint16), tensor(uint32), tensor(uint64), tensor(uint8) ):

    Constrain input to integer tensors.