---
title: MLModelAsset
framework: coreml
role: symbol
role_heading: Class
path: coreml/mlmodelasset
---

# MLModelAsset

An abstraction of a compiled Core ML model asset.

## Declaration

```swift
class MLModelAsset
```

## Overview

Overview MLModelAsset provides a unified interface by abstracting the compiled model representations for .mlmodelc files and in-memory representations. To use an in-memory model, create an MLModelAsset with an in-memory model specification, then call load(_:configuration:completionHandler:).

## Topics

### Creating a model asset

- [init(specification:)](coreml/mlmodelasset/init(specification:).md)
- [init(specification:blobMapping:)](coreml/mlmodelasset/init(specification:blobmapping:).md)
- [init(url:)](coreml/mlmodelasset/init(url:)-43988.md)

### Getting function names

- [functionNames(completionHandler:)](coreml/mlmodelasset/functionnames(completionhandler:).md)

### Getting the model description

- [modelDescription(completionHandler:)](coreml/mlmodelasset/modeldescription(completionhandler:).md)
- [modelDescription(ofFunctionNamed:completionHandler:)](coreml/mlmodelasset/modeldescription(offunctionnamed:completionhandler:).md)

### Initializers

- [init(URL:)](coreml/mlmodelasset/init(url:)-5540m.md)

## Relationships

### Inherits From

- [NSObject](objectivec/nsobject-swift.class.md)

### Conforms To

- [CVarArg](swift/cvararg.md)
- [CustomDebugStringConvertible](swift/customdebugstringconvertible.md)
- [CustomStringConvertible](swift/customstringconvertible.md)
- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [NSObjectProtocol](objectivec/nsobjectprotocol.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)
- [MLBatchProvider](coreml/mlbatchprovider.md)
- [MLArrayBatchProvider](coreml/mlarraybatchprovider.md)
