OpenCV  4.9.0-dev
Open Source Computer Vision
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
cv::gapi::onnx::ep::CoreML Struct Reference

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>

Collaboration diagram for cv::gapi::onnx::ep::CoreML:

Public Member Functions

GAPI_WRAP CoreML ()=default
 Class constructor.
 
GAPI_WRAP CoreMLcfgEnableOnlyNeuralEngine ()
 Enable CoreML EP to run only on Apple Neural Engine.
 
GAPI_WRAP CoreMLcfgEnableOnSubgraph ()
 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).
 
GAPI_WRAP CoreMLcfgUseCPUOnly ()
 Limit CoreML Execution Provider to run on CPU only.
 

Public Attributes

bool enable_on_subgraph = false
 
bool enable_only_ane = false
 
bool use_cpu_only = false
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ CoreML()

GAPI_WRAP cv::gapi::onnx::ep::CoreML::CoreML ( )
default

Class constructor.

Constructs CoreML parameters.

Member Function Documentation

◆ cfgEnableOnlyNeuralEngine()

GAPI_WRAP CoreML & cv::gapi::onnx::ep::CoreML::cfgEnableOnlyNeuralEngine ( )
inline

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

Returns
reference to this parameter structure.

◆ cfgEnableOnSubgraph()

GAPI_WRAP CoreML & cv::gapi::onnx::ep::CoreML::cfgEnableOnSubgraph ( )
inline

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

Returns
reference to this parameter structure.

◆ cfgUseCPUOnly()

GAPI_WRAP CoreML & cv::gapi::onnx::ep::CoreML::cfgUseCPUOnly ( )
inline

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

Returns
reference to this parameter structure.

Member Data Documentation

◆ enable_on_subgraph

bool cv::gapi::onnx::ep::CoreML::enable_on_subgraph = false

◆ enable_only_ane

bool cv::gapi::onnx::ep::CoreML::enable_only_ane = false

◆ use_cpu_only

bool cv::gapi::onnx::ep::CoreML::use_cpu_only = false

The documentation for this struct was generated from the following file: