webgpu: support int64 for Unsqueeze and Expand operators - #27478
Merged
Conversation
Contributor
Author
|
After supporting int64 for Unsqueeze and Expand operators, below models could use graph capture feature, and could get performance improvement. <style> </style>
|
xadupre
approved these changes
Feb 27, 2026
Contributor
|
/azp run Linux QNN CI Pipeline,Win_TRT_Minimal_CUDA_Test_CI,Windows ARM64 QNN CI Pipeline,Windows GPU Doc Gen CI Pipeline |
guschmue
approved these changes
Feb 27, 2026
|
Azure Pipelines successfully started running 4 pipeline(s). |
guschmue
enabled auto-merge (squash)
February 27, 2026 18:55
This was referenced Jul 21, 2026
hariharans29
pushed a commit
that referenced
this pull request
Jul 23, 2026
### Description This updates WebGPU `Reshape` to follow the existing `enable_int64` factory-registration pattern (used by `Unsqueeze`/`Expand`/etc.) instead of static macro registration, and adds explicit int64 WebGPU test coverage for `Reshape`. ### Motivation and Context PR [#27478](#27478) added int64 support for the Expand and Unsqueeze (Squeeze) operators in the WebGPU EP. However, the WebNN EP maps a number of those shape-manipulation operators — including Squeeze/Unsqueeze — onto Reshape (WebNN spec doesn't support Squeeze/Unsqueeze). As a result, when a model uses int64 data through these WebNN-mapped ops, execution falls back because Reshape itself does not yet accept int64 tensors, undermining the int64 coverage that #27478 was intended to enable. Fix #29756 --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Motivation and Context