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

# all(keepRank:)

Computes logical AND on elements across all axes of a tensor where the scalar type of the tensor is expected to be Boolean.

## Declaration

```swift
func all(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 Boolean tensor.

## See Also

### Performing a logical AND operation

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