Skip to content

[Feature Request] Report error codes that represent critical errors, such as device-removal #26648

@mingmingtasd

Description

@mingmingtasd

Describe the feature request

Is there any plan to report more specific error code values for critical errors such as “device-removal” , “device-reset” and “out of memory”?

I looked into the ORT repo, I found that the OrtErrorCode values returned by ORT API like ORT_FAILand ORT_RUNTIME_EXCEPTION are somewhat general.

  1. OrtModelEditorAPI::CreateSessionFromModel method tries to catch all exceptions and converts them to ORT_FAILat 1
  2. InferenceSession::Run method tries to catch all exceptions and converts them to ORT_FAILat 2 or ORT_RUNTIME_EXCEPTIONat 3

Relevant issue: #26606

/cc @fdwr @RafaelCintron @huningxin @skottmckay

Describe scenario use case

For our WebNN implementation in Chrome browser, we handle the OrtErrorCode values from ORT API, but we don’t know which values should be treated as critical errors, such as
“device-removal” , “device-reset” and “out of memory”, as defined at DXGI_ERROR. For these errors, WebNN needs to destroy the context and may even decide to kill the Chrome GPU process.

Metadata

Metadata

Assignees

No one assigned

    Labels

    ep:WebNNWebNN execution providerfeature requestrequest for unsupported feature or enhancement

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions