Contents

.|(_:_:)

Computes element-wise logical OR 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 [true, true, true]

See Also

Performing arithmetic operations