gapi_onnx_ep_CoreML
import { gapi_onnx_ep_CoreML } from '@banou/opencv-wasm'Use after await initOpenCV(). See the initialization and named imports guide.
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;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;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;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;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;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.