Add support for parsing AUTO, HETERO and MULTI from json config#605
Add support for parsing AUTO, HETERO and MULTI from json config#605MayureshV1 merged 3 commits intoovep-developfrom
Conversation
onnxruntime/core/providers/openvino/openvino_provider_factory.cc
Outdated
Show resolved
Hide resolved
|
Please list what unit testing you have done for this code fix |
|
Please resolve comments and close on this PR. |
ab94d32 to
32770ad
Compare
|
@vthaniel , @jatinwadhwa921 - Can we create a test case for load_config feature and if it exists add AUTO, HETERO, MULTI into the tests. @preetha-intel . Do we have a methodology to query whether a feature is set correctly in OpenVINO. |
There is OPENVIINO_LOG_LEVEL=5 env variable that prints the properties of OV compiled model. But its working only for AUTO and MULTI. Looks like HETERO is broken |
f54b772 to
964c89e
Compare
We can test load_config feature for AUTO, MULTI with the OPENVINO_LOG_LEVEL=5 env variable, but this does not work for HETERO. The logs for HETERO are not shown up. |
|
@TejalKhade28 We can use the LOG_LEVEL config option to get the compiler level debug logs. auto_config.json { |
|
@preetha-intel can you please rebase this branch |
964c89e to
672e506
Compare
|
@sfatimar Rebased and validated |
|
@preetha-intel can you please update the branch |
|
Is the test case written for this ? |
672e506 to
6be82a2
Compare
https://github.com/intel-innersource/frameworks.ai.edgecsp.ci.mlops/pull/89 |
Rebased |
|
Internal CI is failing |
|
@preetha-intel Branch has conflicts |
6be82a2 to
2d4d500
Compare
|
Merging this PR since #630 is dependent on changes here and would need to be rebased. |
* Add support for parsing AUTO, HETERO and MULTI from json config * Fix lint issues * Address review comments
* Add support for parsing AUTO, HETERO and MULTI from json config * Fix lint issues * Address review comments
Description
Add parsing for different mode execution via config file in OVEP
Motivation and Context
Support for the AUTO properties like ENABLE_RUNTIME_FALLBACK needs to be added in OVEP.
Sample .json file for this feature is :
auto_config.json
{
"AUTO":
{"ENABLE_STARTUP_FALLBACK":"NO",
"ENABLE_RUNTIME_FALLBACK" : "NO",
"EXECUTION_MODE_HINT" : "ACCURACY"}
}
The properties for a specified hardware is obtained from OV. Adding the syntax to print supported OV properties for a device using C++ API
For checking whether the property is set correctly during OV model compilation, we can get and print the properties from OV compiled model using the below snippet in C++
HAFP-3004