---
title: dimensions
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/mlctransposelayer/dimensions-71ed6
---

# dimensions

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

## Declaration

```swift
var dimensions: [Int] { get }
```

## Discussion

Discussion Permutes the dimensions according to dimensions. The returned tensor’s dimension i corresponds to dimensions[i].
