---
title: shape
framework: ML Compute
role: symbol
role_heading: Instance Property
platforms: [iOS 14.5+, iPadOS 14.5+, Mac Catalyst 14.5+, macOS 11.3+, tvOS 14.5+]
path: mlcompute/mlcreshapelayer/shape-8k50y
---

# shape

An array that contains the size of each dimension.

## Declaration

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