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