Skip to content

[WebGPU] Einsum fixes for 5D tensors#27779

Open
xenova wants to merge 3 commits intomicrosoft:mainfrom
xenova:einsum-fixes
Open

[WebGPU] Einsum fixes for 5D tensors#27779
xenova wants to merge 3 commits intomicrosoft:mainfrom
xenova:einsum-fixes

Conversation

@xenova
Copy link
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
Contributor Author

xenova commented Mar 20, 2026

cc @guschmue

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

Successfully merging this pull request may close these issues.

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

1 participant