-
Notifications
You must be signed in to change notification settings - Fork 31
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support for parsing AUTO, HETERO and MULTI from json config #605
base: ovep-develop
Are you sure you want to change the base?
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 |
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