---
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-6iz59
---

# batchSizePerSequenceStep

The batch size for each sequence.

## Declaration

```swift
var batchSizePerSequenceStep: [Int]? { get }
```

## 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 is, sequenceLengths[0] when sortedSequences is true.

## See Also

### Inspecting Tensor Descriptors

- [dataType](mlcompute/mlctensordescriptor/datatype.md)
- [dimensionCount](mlcompute/mlctensordescriptor/dimensioncount.md)
- [shape](mlcompute/mlctensordescriptor/shape-7i1rw.md)
- [stride](mlcompute/mlctensordescriptor/stride-5mzlt.md)
- [tensorAllocationSizeInBytes](mlcompute/mlctensordescriptor/tensorallocationsizeinbytes.md)
- [sequenceLengths](mlcompute/mlctensordescriptor/sequencelengths-3jdab.md)
- [sortedSequences](mlcompute/mlctensordescriptor/sortedsequences.md)
