Skip to content

Update unknown provider error message with current providers#24352

Merged
RyanUnderhill merged 1 commit intomainfrom
ryanunderhill/provider_error
Apr 9, 2025
Merged

Update unknown provider error message with current providers#24352
RyanUnderhill merged 1 commit intomainfrom
ryanunderhill/provider_error

Conversation

@RyanUnderhill
Copy link
Contributor

Description

WebGPU, VitisAI, and DML are missing from the list.

Motivation and Context

If users misspell a provider name this error should be showing them the full possibilities. Leaving one out will lead to confusion.

I noticed it when testing new providers in GenAI that the error message was not up to date.

RyanUnderhill added a commit to microsoft/onnxruntime-genai that referenced this pull request Apr 9, 2025
…onfigEntry directly (#1384)

Also simplify our AppendExecutionProvider usage. I removed the
unnecessary extra step of copying into an unordered_map then back into a
std::vector.

This also unifies all AppendExecutionProviders together and is now
extensible to future unknown providers.

Now for unknown providers, Onnxruntime will report an error with a list
of the valid providers. In testing, the list in onnxruntime was found to
be incomplete, this PR addresses this:
microsoft/onnxruntime#24352
@RyanUnderhill RyanUnderhill merged commit aa87e34 into main Apr 9, 2025
87 of 89 checks passed
@RyanUnderhill RyanUnderhill deleted the ryanunderhill/provider_error branch April 9, 2025 19:55
ashrit-ms pushed a commit that referenced this pull request Apr 24, 2025
### Description
WebGPU, VitisAI, and DML are missing from the list.

### Motivation and Context
If users misspell a provider name this error should be showing them the
full possibilities. Leaving one out will lead to confusion.

I noticed it when testing new providers in GenAI that the error message
was not up to date.
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 this pull request may close these issues.

3 participants