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

# 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

```swift
func any(alongAxes axes: Int..., keepRank: Bool = false) -> MLTensor
```

## Parameters

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

## Return Value

Return Value The reduced Boolean tensor.

## See Also

### Performing a logical OR operation

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