OpenCV
4.9.0
Open Source Computer Vision
|
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. More...
#include <opencv2/gapi/infer/onnx.hpp>
Public Member Functions | |
GAPI_WRAP | CoreML ()=default |
Class constructor. More... | |
GAPI_WRAP CoreML & | cfgEnableOnlyNeuralEngine () |
Enable CoreML EP to run only on Apple Neural Engine. More... | |
GAPI_WRAP CoreML & | 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). More... | |
GAPI_WRAP CoreML & | cfgUseCPUOnly () |
Limit CoreML Execution Provider to run on CPU only. More... | |
Public Attributes | |
bool | enable_on_subgraph = false |
bool | enable_only_ane = false |
bool | use_cpu_only = false |
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.
|
default |
Class constructor.
Constructs CoreML parameters.
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
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
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
bool cv::gapi::onnx::ep::CoreML::enable_on_subgraph = false |
bool cv::gapi::onnx::ep::CoreML::enable_only_ane = false |
bool cv::gapi::onnx::ep::CoreML::use_cpu_only = false |