---
title: sequenceLengths
framework: ML Compute
role: symbol
role_heading: Instance Property
platforms: [iOS 14.0+, iPadOS 14.0+, Mac Catalyst 14.0+, macOS 11.0+, tvOS 14.0+]
path: mlcompute/mlctensordescriptor/sequencelengths-3ntsa
---

# sequenceLengths

An array that contains the variable lengths of sequences stored in the tensor.

## Declaration

```occ
@property (nonatomic, copy, readonly, nullable) NSArray<NSNumber *> * sequenceLengths;
```

## See Also

### Inspecting Tensor Descriptors

- [dataType](mlcompute/mlctensordescriptor/datatype.md)
- [dimensionCount](mlcompute/mlctensordescriptor/dimensioncount.md)
- [shape](mlcompute/mlctensordescriptor/shape-91vng.md)
- [stride](mlcompute/mlctensordescriptor/stride-3ydik.md)
- [tensorAllocationSizeInBytes](mlcompute/mlctensordescriptor/tensorallocationsizeinbytes.md)
- [sortedSequences](mlcompute/mlctensordescriptor/sortedsequences.md)
- [batchSizePerSequenceStep](mlcompute/mlctensordescriptor/batchsizepersequencestep-55mp8.md)
