interface CoreMLExecutionProviderOption {
    coreMlFlags?: number;
    enableOnSubgraph?: boolean;
    name: "coreml";
    onlyEnableDeviceWithANE?: boolean;
    useCPUAndGPU?: boolean;
    useCPUOnly?: boolean;
}

繼承關係 (檢視完整內容)

屬性

coreMlFlags?: number

CoreML 執行提供程式的位標誌。

COREML_FLAG_USE_CPU_ONLY = 0x001
COREML_FLAG_ENABLE_ON_SUBGRAPH = 0x002
COREML_FLAG_ONLY_ENABLE_DEVICE_WITH_ANE = 0x004
COREML_FLAG_ONLY_ALLOW_STATIC_INPUT_SHAPES = 0x008
COREML_FLAG_CREATE_MLPROGRAM = 0x010
COREML_FLAG_USE_CPU_AND_GPU = 0x020

有關更多詳細資訊,請參閱 include/onnxruntime/core/providers/coreml/coreml_provider_factory.h。

此標誌僅在 ONNXRuntime (Node.js 繫結) 中可用。

enableOnSubgraph?: boolean

指定是否在子圖上啟用 CoreML EP。

此設定僅在 ONNXRuntime (react-native) 中可用。

name: "coreml"
onlyEnableDeviceWithANE?: boolean

指定是否僅對配備 ANE (Apple Neural Engine) 的 Apple 裝置啟用 CoreML EP。

此設定僅在 ONNXRuntime (react-native) 中可用。

useCPUAndGPU?: boolean
useCPUOnly?: boolean

指定是否在 CoreML EP 中僅使用 CPU。

此設定僅在 ONNXRuntime (react-native) 中可用。

使用 TypeDoc 生成