---
title: shape
framework: coreml
role: symbol
role_heading: Instance Property
path: coreml/mlmultiarray/shape
---

# shape

The multiarray’s multidimensional shape as a number array in which each element’s value is the size of the corresponding dimension.

## Declaration

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

## See Also

### Inspecting a multiarray

- [count](coreml/mlmultiarray/count.md)
- [dataType](coreml/mlmultiarray/datatype.md)
- [strides](coreml/mlmultiarray/strides.md)
