Contents

init(preferredComputeUnitKind:)

Creates options with a preferred compute unit kind.

Declaration

init(preferredComputeUnitKind: ComputeUnitKind)

Parameters

  • preferredComputeUnitKind:

    The compute unit kind the specialized model should prefer.

Mentioned in

Discussion

The specialization process maximizes use of the specified compute unit kind, falling back to other allowed compute units for incompatible operations.