---
title: batchSizePerSequenceStep
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/batchsizepersequencestep-55mp8
---

# batchSizePerSequenceStep

The batch size for each sequence.

## Declaration

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

## Discussion

Discussion The framework only populates this value when sequenceLengths is valid. The length of this array is equal to the maximum sequence length in sequenceLengths; that’s sequenceLengths[0] when sortedSequences is YES.

## 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)
- [sequenceLengths](mlcompute/mlctensordescriptor/sequencelengths-3ntsa.md)
- [sortedSequences](mlcompute/mlctensordescriptor/sortedsequences.md)
