-
Notifications
You must be signed in to change notification settings - Fork 57
[OVEP] Fix for precision accuracy #603
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
Conversation
9967507 to
f5428af
Compare
onnxruntime/core/providers/openvino/openvino_provider_factory.cc
Outdated
Show resolved
Hide resolved
onnxruntime/core/providers/openvino/openvino_provider_factory.cc
Outdated
Show resolved
Hide resolved
|
Please move parsing out of the main file. |
|
Tested with AUTO, Multi Heter, GPU and CPU and NPU with Accuracy . AUTO:GPU, CPU. Need to check for GPU.0 1and GPU.1 |
onnxruntime/core/providers/openvino/openvino_provider_factory.cc
Outdated
Show resolved
Hide resolved
| << " HETERO/MULTI/AUTO options and set 'precision' separately. \n"; | ||
| auto delimit = device_type.find("_"); | ||
| device_type = device_type.substr(0, delimit); | ||
| return device_type.substr(delimit + 1); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Here it directly returns the precision passed by the user or there is a validity check?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No validity check, just return whatever is written after "_"
f5428af to
204163d
Compare
fixed |
|
@sfatimar , @jatinwadhwa921 - Please do not merge till there is a corresponding test written and merged for the Accuracy feature. |
|
Approved from my side. |
sfatimar
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approved
|
Please make sure to rebase it |
204163d to
61b36ef
Compare
I have tested it from my end, it works fine, test case has been added in the repo |
|
@jatinwadhwa921 . Can you please share the tests with me and @preetha-intel. These are the 3 scenarios that should be covered in validation for mixed precision models (FP32/ FP16):
|
This PR handles precision for devices "AUTO:,MULTI: and HETERO:"
HAFP-2913