---
title: "init(array:)"
framework: coreml
role: symbol
role_heading: Initializer
path: "coreml/mlarraybatchprovider/init(array:)"
---

# init(array:)

Creates the batch provider based on the array of feature providers.

## Declaration

```swift
init(array: [any MLFeatureProvider])
```

## Parameters

- `array`: The array of feature providers for the batch.

## See Also

### Creating a batch provider

- [init(dictionary:)](coreml/mlarraybatchprovider/init(dictionary:).md)
