Skip to content

gapi_onnx_ep_CoreML

gapiclassOpenCV 5.0.0
import { gapi_onnx_ep_CoreML } from '@banou/opencv-wasm'

Use after await initOpenCV(). See the initialization and named imports guide.

ARGUMENTSConstructor or factory
CLASSgapi_onnx_ep_CoreML
RETURN TYPEOwned native handle
Call structure. A void return can still write to destination arguments. The parameter descriptions define inputs, outputs and ownership.

Native object: release it with using or delete(). Factories can return null; check before calling methods.

This structure provides functions that fill inference options for ONNX CoreML Execution Provider. Please follow https://onnxruntime.ai/docs/execution-providers/CoreML-ExecutionProvider.html#coreml-execution-provider

Constructors and members

static new

Class constructor.

Constructs CoreML parameters.
new(): gapi_onnx_ep_CoreML;
Returns

The gapi_onnx_ep_CoreML result.

clone

Create another handle to the same native object. This retains the object without copying its pixels or algorithm state; dispose both handles separately.

clone(): this;
Returns

The this result.

cfgUseCPUOnly

Limit CoreML Execution Provider to run on CPU only.

This function is used to limit CoreML to run on CPU only.
Please follow: https://onnxruntime.ai/docs/execution-providers/CoreML-ExecutionProvider.html#coreml_flag_use_cpu_only
cfgUseCPUOnly(): gapi_onnx_ep_CoreML;
Returns

reference to this parameter structure.

cfgEnableOnSubgraph

Enable CoreML EP to run on a subgraph in the body of a control flow ONNX operator (i.e. a Loop, Scan or If operator).

This function is used to enable CoreML EP to run on
a subgraph of a control flow of ONNX operation.
Please follow: https://onnxruntime.ai/docs/execution-providers/CoreML-ExecutionProvider.html#coreml_flag_enable_on_subgraph
cfgEnableOnSubgraph(): gapi_onnx_ep_CoreML;
Returns

reference to this parameter structure.

cfgEnableOnlyNeuralEngine

Enable CoreML EP to run only on Apple Neural Engine.

This function is used to enable CoreML EP to run only on Apple Neural Engine.
Please follow: https://onnxruntime.ai/docs/execution-providers/CoreML-ExecutionProvider.html#coreml_flag_only_enable_device_with_ane
cfgEnableOnlyNeuralEngine(): gapi_onnx_ep_CoreML;
Returns

reference to this parameter structure.

These signatures describe this package. Upstream documentation can mention optional backends that are absent from this build. Check runtime compatibility before choosing a backend or file format.