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

[Segment Anything][WebNN GPU] Failed to execute 'compute' on 'MLContext': Invalid outputs: The type (BigInt64) of the array buffer view #17

Closed
JiangYueBook opened this issue Jul 17, 2024 · 3 comments

Comments

@JiangYueBook
Copy link

Repro Steps:

  1. Launch latest Chrome Canary on Windows 11
    C:\Users\AppData\Local\Google\Chrome SxS\Application\chrome.exe" --enable-features=WebMachineLearningNeuralNetwork

  2. Visit https://microsoft.github.io/webnn-developer-preview/demos/segment-anything/

  3. Move mouse to image when the modesl loading finshed.

Actual Result:

   TypeError: Failed to execute 'compute' on 'MLContext': Invalid outputs: The type (BigInt64) of the array buffer view with name "/ArgMax_output_0" doesn't match the expected operand data type (int32).

Environment:

Chrome Canary: 128.0.6600.0 (Official Build)

GPU Driver Version: 32.0.101.5762

Device OS CPU GPU
Laptop Windows 11 23H2 Ultra 7 155H Intel Arc Graphics
@ibelem
Copy link
Contributor

ibelem commented Jul 17, 2024

Caused by argMax change: chromium-review.googlesource.com/c/chromium/src/+/5692538

@fdwr
Copy link
Collaborator

fdwr commented Jul 18, 2024

Breaking change should be addressed once this goes: microsoft/onnxruntime#21385

(update) It's in ORT's WebNN EP. Now need to update the sample to use the newer ORT build.

fdwr added a commit that referenced this issue Jul 25, 2024
Fix #16 #17 Add outputDataType option for the ArgMax/ArgMin ops
@ibelem
Copy link
Contributor

ibelem commented Jul 26, 2024

This issue has been fixed in demo code #19 , please close this issue. Thanks! :)

@fdwr fdwr closed this as completed Jul 26, 2024
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

No branches or pull requests

3 participants