ORTCoreMLExecutionProviderOptions

Objective-C

@interface ORTCoreMLExecutionProviderOptions : NSObject

Swift

class ORTCoreMLExecutionProviderOptions : NSObject

Options for configuring the CoreML execution provider.

  • Whether the CoreML execution provider should run on CPU only.

    Declaration

    Objective-C

    @property BOOL useCPUOnly;

    Swift

    var useCPUOnly: Bool { get set }
  • Whether the CoreML execution provider is enabled on subgraphs.

    Declaration

    Objective-C

    @property BOOL enableOnSubgraphs;

    Swift

    var enableOnSubgraphs: Bool { get set }
  • Whether the CoreML execution provider is only enabled for devices with Apple Neural Engine (ANE).

    Declaration

    Objective-C

    @property BOOL onlyEnableForDevicesWithANE;

    Swift

    var onlyEnableForDevicesWithANE: Bool { get set }