Skip to content
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

ONNX issue #208

Closed
eeko-kon opened this issue Oct 1, 2023 · 4 comments · Fixed by #209
Closed

ONNX issue #208

eeko-kon opened this issue Oct 1, 2023 · 4 comments · Fixed by #209

Comments

@eeko-kon
Copy link

eeko-kon commented Oct 1, 2023

Hi Niek :)

I am suddenly getting this error:

ValueError: This ORT build has ['AzureExecutionProvider', 'CPUExecutionProvider'] enabled. Since ORT 1.9, you are required to explicitly set the providers parameter when instantiating InferenceSession. For example, onnxruntime.InferenceSession(..., providers=['AzureExecutionProvider', 'CPUExecutionProvider'], ...)

Have you encountered this?

Relevant issue I found online:
microsoft/onnxruntime#17631

@niekdejonge
Copy link
Collaborator

Hi Efi,

Sorry for the late response, I was away for holidays.

Thanks for sharing!
This indeed seems to be the issue with onnxruntime that you already shared. I expect the quick fix is setting ONNXRuntime to <1.16. So I will do this for the MS2Query requirements, I hope that fixes the issue.

Let me know if this is still an issue when using an older version of onnxruntime.

@eeko-kon
Copy link
Author

eeko-kon commented Oct 9, 2023

thank you Niek! Amazing! FYI the 1.2.3 version is not available through pip yet

@niekdejonge
Copy link
Collaborator

Ah sorry about that, was getting started up again after the holidays... Now version 1.2.4 contains the change. (1.2.3 has been removed)

@eeko-kon
Copy link
Author

So fast, thank youuuu ! :))

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants