<!--
{
  "availability" : [
    "iOS: 14.0.0 - 17.4.0",
    "iPadOS: 14.0.0 - 17.4.0",
    "macCatalyst: 14.0.0 - 17.4.0",
    "macOS: 11.0.0 - 14.3.0",
    "tvOS: 14.0.0 - 17.4.0"
  ],
  "documentType" : "symbol",
  "framework" : "MLCompute",
  "identifier" : "/documentation/MLCompute/MLCSplitLayer",
  "metadataVersion" : "0.1.0",
  "role" : "Class",
  "symbol" : {
    "kind" : "Class",
    "modules" : [
      "ML Compute"
    ],
    "preciseIdentifier" : "c:objc(cs)MLCSplitLayer"
  },
  "title" : "MLCSplitLayer"
}
-->

# MLCSplitLayer

A layer that splits a tensor value into a list of subtensors.

```
class MLCSplitLayer
```

## Topics

### Creating Split Layers

[`init(splitCount:dimension:)`](/documentation/MLCompute/MLCSplitLayer/init(splitCount:dimension:))

Creates a split layer with the number of splits and dimension you specify.

[`init(splitSectionLengths:dimension:)`](/documentation/MLCompute/MLCSplitLayer/init(splitSectionLengths:dimension:))

Creates a split layer with the lengths of each split section and dimension you specify.

[`layerWithSplitSectionLengths:dimension:`](/documentation/MLCompute/MLCSplitLayer/layerWithSplitSectionLengths:dimension:)

Creates a split layer with the lengths of each split section and dimension you specify.

### Inspecting Split Layers

[`dimension`](/documentation/MLCompute/MLCSplitLayer/dimension)

The dimension or axis along which to split the tensor.

[`splitCount`](/documentation/MLCompute/MLCSplitLayer/splitCount)

The number of splits.

[`splitSectionLengths`](/documentation/MLCompute/MLCSplitLayer/splitSectionLengths-5abch)

An array that contains the lengths of each split section.

[`splitSectionLengths`](/documentation/MLCompute/MLCSplitLayer/splitSectionLengths-32abw)

An array that contains the lengths of each split section.



---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)