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
Fix Smart Search when using OpenVINO #7389
Fix Smart Search when using OpenVINO #7389
Conversation
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.
Looks good! There's a possible issue in that changing the cwd might be unsound if multiple models are loaded at the same time. Fortunately, we only allow one model to load at a time so this isn't an issue in practice.
Yes, We can always remove this in the future once the package is updated to include the fix. |
It looks like the tests need to be updated. Also, I don't have an Intel device handy. Can you check if it works without the |
Just checked the onnxruntime changelog and openvino supports dynamic shapes since v1.15, so the static shapes might not be required, also verified loading the weights locally. I think we can also get rid of the external_data stuff entirely if none of the models exceed 2GiBs in a single file (protobuf limit). |
Sweet, then let's just remove the code for static inputs.
Some models do exceed this, so not really an option. |
This PR fixes smart search when using OpenVINO. See discussion #6869
The issue is caused due to the following bug in upstream, see here and fixed by this.
As this is the part of the
v1.17.0
release and theonnxruntime_openvino
package has not been updated in a while, this PR fixes the issue by changing the dir to where the external_data is loaded before the onnxruntime session is created.