Class

MLModelConfiguration

The settings for creating or updating a machine learning model.

Declaration

@interface MLModelConfiguration : NSObject

Topics

Configuring GPU Usage

preferredMetalDevice

The metal device you prefer this model use to make predictions (inference) and update the model.

allowLowPrecisionAccumulationOnGPU

A Boolean value that determines whether to allow low-precision accumulation on a GPU.

Allowing Access to Processing Units

computeUnits

The processing unit or units the model uses to make predictions.

MLComputeUnits

The set of processing-unit configurations the model can use to make predictions.

Supporting Types

MLParameterKey

A key for model and update parameter dictionaries.

Instance Properties

Relationships

Inherits From

See Also

Creating a Model

+ modelWithContentsOfURL:error:

Creates a Core ML model object from a compiled model file.

+ modelWithContentsOfURL:configuration:error:

Creates a Core ML model object from a compiled model file and a custom configuration.