Contents

.^(_:_:)

Computes element-wise logical XOR where both operands are expected contain Boolean scalar elements.

Declaration

static func .^ (lhs: MLTensor, rhs: MLTensor) -> MLTensor

Discussion

For example:

let x = MLTensor([true, true, true])
let y = MLTensor([true, false, true])
x .^ y // is [false, true, false]

See Also

Performing arithmetic operations