---
title: "init(_:)"
framework: coreml
role: symbol
role_heading: Initializer
path: "coreml/mlshapedarrayprotocol/init(_:)"
---

# init(_:)

Creates a shaped array type from a multiarray.

## Declaration

```swift
init(_ multiArray: MLMultiArray)
```

## Parameters

- `multiArray`: An doc://com.apple.coreml/documentation/CoreML/MLMultiArray with the same underlying type as the shaped array type.

## See Also

### Creating a shaped array type from another type

- [init(converting:)](coreml/mlshapedarrayprotocol/init(converting:).md)
