---
title: "load(asset:configuration:)"
framework: coreml
role: symbol
role_heading: Type Method
path: "coreml/mlcomputeplan-1w21n/load(asset:configuration:)"
---

# load(asset:configuration:)

Construct the compute plan of a model asynchronously given the model asset.

## Declaration

```swift
static func load(asset: MLModelAsset, configuration: MLModelConfiguration) async throws -> MLComputePlan
```

## Parameters

- `asset`: The model asset.
- `configuration`: The model configuration.

## See Also

### Loading a compute plan

- [load(contentsOf:configuration:)](coreml/mlcomputeplan-1w21n/load(contentsof:configuration:).md)
