Skip to content

[WebGPU] Einsum fixes for 5D tensors#27779

Merged
guschmue merged 3 commits intomicrosoft:mainfrom
xenova:einsum-fixes
Mar 24, 2026
Merged

[WebGPU] Einsum fixes for 5D tensors#27779
guschmue merged 3 commits intomicrosoft:mainfrom
xenova:einsum-fixes

Conversation

@xenova
Copy link
Copy Markdown
Contributor

@xenova xenova commented Mar 20, 2026

Description

Fixes WebGPU Einsum op by replacing the manual uniforms.inputN_shape[idx] string with GetElementAt(...) which correctly handles uniform shape access for all tensor ranks.

I also added a bunch of tests for this...

Motivation and Context

Closes #27762

xenova added 3 commits March 19, 2026 22:41
Run failed but expected success: Non-zero status code returned while running Einsum node. Name:'node1' Status Message: Failed to create a WebGPU compute pipeline: [Invalid ShaderModule "Einsum"] is invalid due to a previous error.
 - While validating compute stage ([Invalid ShaderModule "Einsum"], entryPoint: "main").
@xenova
Copy link
Copy Markdown
Contributor Author

xenova commented Mar 20, 2026

cc @guschmue

@guschmue guschmue added the ep:WebGPU ort-web webgpu provider label Mar 24, 2026
@guschmue
Copy link
Copy Markdown
Contributor

/azp run Linux QNN CI Pipeline,Win_TRT_Minimal_CUDA_Test_CI,Windows ARM64 QNN CI Pipeline,Windows GPU Doc Gen CI Pipeline

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 4 pipeline(s).

@guschmue guschmue merged commit 142ecca into microsoft:main Mar 24, 2026
94 of 95 checks passed
@xenova xenova deleted the einsum-fixes branch March 24, 2026 23:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ep:WebGPU ort-web webgpu provider

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[WebGPU] Nemotron-H Mamba Einsum node throws invalid shader error

2 participants