Contents

AIModelCache

A cache that stores the specialized model artifacts for inference.

Declaration

final class AIModelCache

Overview

The cache holds the optimized, device-specific artifacts that AIModel loads to execute its inference functions. Each cache entry contains a specialized asset formed from a specific .aimodel or .aimodelc and SpecializationOptions combination.

Topics

Accessing the default cache

Creating a shared cache

Loading a specialized model

Deleting cache entries

Controlling cache persistence

See Also

Configuration