---
title: MLBatchProvider
framework: coreml
role: symbol
role_heading: Protocol
path: coreml/mlbatchprovider
---

# MLBatchProvider

An interface that represents a collection of feature providers.

## Declaration

```swift
protocol MLBatchProvider
```

## Overview

Overview Similar to the MLFeatureProvider, this interface allows you to define your own batch provider. If you collect your data asynchronously or it is memory intensive, implement this protocol on your data structure to optimize performance with batch processing.

## Topics

### Accessing values

- [features(at:)](coreml/mlbatchprovider/features(at:).md)
- [count](coreml/mlbatchprovider/count.md)

## Relationships

### Conforming Types

- [MLArrayBatchProvider](coreml/mlarraybatchprovider.md)

## See Also

### Model inputs and outputs

- [Making Predictions with a Sequence of Inputs](coreml/making-predictions-with-a-sequence-of-inputs.md)
- [MLFeatureValue](coreml/mlfeaturevalue.md)
- [MLSendableFeatureValue](coreml/mlsendablefeaturevalue.md)
- [MLFeatureProvider](coreml/mlfeatureprovider.md)
- [MLDictionaryFeatureProvider](coreml/mldictionaryfeatureprovider.md)
- [MLArrayBatchProvider](coreml/mlarraybatchprovider.md)
- [MLModelAsset](coreml/mlmodelasset.md)
