<!--
{
  "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/MLCTransposeLayer",
  "metadataVersion" : "0.1.0",
  "role" : "Class",
  "symbol" : {
    "kind" : "Class",
    "modules" : [
      "ML Compute"
    ],
    "preciseIdentifier" : "c:objc(cs)MLCTransposeLayer"
  },
  "title" : "MLCTransposeLayer"
}
-->

# MLCTransposeLayer

A layer that permutes the dimensions you specify.

```
class MLCTransposeLayer
```

## Topics

### Creating Transpose Layers

[`init(dimensions:)`](/documentation/MLCompute/MLCTransposeLayer/init(dimensions:))

Creates a transpose layer with the dimensions you specify.

[`layerWithDimensions:`](/documentation/MLCompute/MLCTransposeLayer/layerWithDimensions:)

Creates a transpose layer with the dimensions you specify.

### Inspecting Transpose Layers

[`dimensions`](/documentation/MLCompute/MLCTransposeLayer/dimensions-71ed6)

An array that contains an input axis source for each output axis, which represents the ordering of dimensions.

[`dimensions`](/documentation/MLCompute/MLCTransposeLayer/dimensions-1d5nw)

An array that contains an input axis source for each output axis, which represents the ordering of dimensions.



---

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)