---
title: splitCount
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/mlcsplitlayer/splitcount
---

# splitCount

The number of splits.

## Declaration

```swift
var splitCount: Int { get }
```

## Discussion

Discussion The layer splits the tensor into equally sized chunks, however the last chunk may be smaller in size.

## See Also

### Inspecting Split Layers

- [dimension](mlcompute/mlcsplitlayer/dimension.md)
- [splitSectionLengths](mlcompute/mlcsplitlayer/splitsectionlengths-5abch.md)
