any(alongAxes:keepRank:)
Computes logical OR on elements across the specified axes of a tensor where the scalar type of the tensor is expected to be Boolean.
Declaration
func any(alongAxes axes: Int..., keepRank: Bool = false) -> MLTensorParameters
- axes:
The axes to reduce.
- keepRank:
A Boolean indicating whether to keep the reduced axes or not. The default value is
false.
Return Value
The reduced Boolean tensor.