-
Notifications
You must be signed in to change notification settings - Fork 11
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
Switching backends yields error - Failed to execute 'dispatch' on 'MLContext': Invalid inputs: The context of MLGraph doesn't match the context of the MLTensor with name "pixel_values" #69
Comments
to
Added codes above in demo application side (index.js), the classifier dispose() method was invoked successfully, but the issue still exists when clicking |
We weren't checking that MLTensors were from the same context before reusing them. Found while debugging microsoft/webnn-developer-preview#69
It looks like we weren't checking the context before attempting to reuse existing MLTensors. I have created a PR fthat fixes the issue microsoft/onnxruntime#23100 |
We weren't checking that MLTensors were from the same context before reusing them. Found while debugging microsoft/webnn-developer-preview#69
We weren't checking that MLTensors were from the same context before reusing them. Found while debugging microsoft/webnn-developer-preview#69
Repro Steps:
Classify
buttonActual Result
PASS
Repro Steps: (cont.)
WebNN GPU
buttonClassify
buttonActual Result
Failed to execute 'dispatch' on 'MLContext': Invalid inputs: The context of MLGraph doesn't match the context of the MLTensor with name "pixel_values"
Note
Error also occurs when switching from
WebNN GPU
toWebNN NPU
Environment
This version of Transformers.js distribution was built using the following components:
Related Issues
Related Fixes
MLContext
s in theWebNNBackend
onnxruntime#22510@egalli Please help to check this issue. Thanks!
CC @fdwr @Honry
The text was updated successfully, but these errors were encountered: