---
title: dimension
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/dimension
---

# dimension

The dimension or axis along which to split the tensor.

## Declaration

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

## See Also

### Inspecting Split Layers

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