---
title: rank
framework: accelerate
role: symbol
role_heading: Instance Property
path: accelerate/bnnsgraph/builder/tensor/rank
---

# rank

The rank of the tensor.

## Declaration

```swift
var rank: Int? { get }
```
