---
title: "init(data:shape:strides:)"
framework: coreml
role: symbol
role_heading: Initializer
path: "coreml/mlshapedarrayslice/init(data:shape:strides:)"
---

# init(data:shape:strides:)

Creates a shaped array with defined data, shape, and strides.

## Declaration

```swift
init(data: Data, shape: [Int], strides: [Int])
```

## Parameters

- `data`: A block of data that initializes the array.
- `shape`: The shape of the array.
- `strides`: The strides of the array.

## See Also

### Creating a shaped array slice with data

- [init(data:shape:)](coreml/mlshapedarrayslice/init(data:shape:).md)
