Contents

.==(_:_:)

Computes element-wise equality between two tensors.

Declaration

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

Return Value

A Boolean tensor where each element is true if self is equal to than the corresponding element of other, and false otherwise.

Discussion

Shapes must be broadcastable, where the broadcasted shape becomes the shape of the output.

See Also

Performing arithmetic operations