---
title: "any(keepRank:)"
framework: coreml
role: symbol
role_heading: Instance Method
path: "coreml/mltensor/any(keeprank:)"
---

# 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

```swift
func any(keepRank: Bool = false) -> MLTensor
```

## Parameters

- `keepRank`: A Boolean indicating whether to keep the reduced axes or not. The default value is false.

## Return Value

Return Value The reduced tensor.

## See Also

### Performing a logical OR operation

- [any(alongAxes:keepRank:)](coreml/mltensor/any(alongaxes:keeprank:).md)
