Contents

preferredMetalDevice

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

Declaration

var preferredMetalDevice: (any MTLDevice)? { get set }

Discussion

If preferredMetalDevice is nil, the default value, Core ML chooses a metal device for you.

See Also

Configuring GPU usage