-
Notifications
You must be signed in to change notification settings - Fork 3k
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
[WebGPU] Error: [WebGPU] Kernel "[MaxPool] /sincnet/pool1d.0/MaxPool" failed. Error: length of specified kernel shapes should be 2 less than length of input dimensions
#21386
Comments
cc @guschmue for viz |
The root cause is ORT WebGPU only implements maxpool2d. But this model requires maxpool1d, then fails with the check "kernelShape.length !== inputDims.length - 2" in adjustPoolAttributes(). |
I think there are more issues with pyannotate after the first maxpool, |
And the fix for maxpool looks good. |
Bug: #21386 ### Description <!-- Describe your changes. --> ### Motivation and Context <!-- - Why is this change required? What problem does it solve? - If it fixes an open issue, please link to the issue here. -->
Describe the issue
Attempting to run this PyAnnote segmentation model with WebGPU produces the following error:
Running with WASM produces the correct result.
To reproduce
minimum reproduction: https://jsfiddle.net/omgkb3n1/1/
Urgency
Prevents use of this model in Transformers.js
ONNX Runtime Installation
Released Package
ONNX Runtime Version or Commit ID
1.18.0
Execution Provider
'webgpu' (WebGPU)
The text was updated successfully, but these errors were encountered: