---
title: "init(shapedArray:)"
framework: coreml
role: symbol
role_heading: Initializer
path: "coreml/mlfeaturevalue/init(shapedarray:)"
---

# init(shapedArray:)

Creates a feature value that contains a shaped array.

## Declaration

```swift
convenience init<Scalar>(shapedArray: MLShapedArray<Scalar>) where Scalar : MLShapedArrayScalar
```

## Parameters

- `shapedArray`: An doc://com.apple.coreml/documentation/CoreML/MLShapedArray instance.

## See Also

### Creating multidimensional feature values

- [init(multiArray:)](coreml/mlfeaturevalue/init(multiarray:).md)
