# rank

> The rank of a MachineLearningTensorShape.

## Definition

* **Type:** Field
* **Namespace:** [UnityEngine.Rendering](/engine/6000.5/script-reference/unityengine/rendering.md)
* **Assembly:** UnityEngine.CoreModule

```csharp
public uint rank
```

### Remarks

For example, a tensor of shape (5) has a rankof 1. A tensor of shape (7, 3, 5) has a rank of 3.

Rank of 0 tensors are scalar values. To describe an empty tensor shape,  use NullTensor.
