load(contentsOf:configuration:)
Construct a model asynchronously from a compiled model asset.
Declaration
class func load(contentsOf url: URL, configuration: MLModelConfiguration = MLModelConfiguration()) async throws -> MLModelParameters
- url:
The URL of the compiled model asset derived from in-memory or on-disk Core ML model.
- configuration:
The model configuration that hold options for loading the model.
Return Value
The loaded model, if successful; otherwise, nil.