WebGPU EP: Add int64 support for Tile operator#29875
Open
huningxin wants to merge 3 commits into
Open
Conversation
- Replace ONNX_OPERATOR macro registrations with CreateTileVersionedKernelInfo/ CreateTileKernelInfo factory functions gated by enable_int64 (mirrors Reshape, Expand, Sub, etc.) - Update TileProgram to carry an is_int64_ flag; when true, GenerateShaderCode copies the raw vec2<u32> storage via IndicesToOffset + SetByOffset(use_storage_type) to preserve all 64 bits instead of sign-extending from i32 - Register Tile kernels via RegisterKernels() with the enable_int64 flag - Include tile.h in webgpu_execution_provider.cc; remove old BuildKernelCreateInfo entries for Tile from the static table - Add TileInt64TypeWebGpu test using values with non-zero high 32 bits
|
Azure Pipelines: There may be pipelines that require an authorized user to comment /azp run to run. |
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
Adds
int64data type support to theTileoperator in the WebGPU execution provider. The op is used by yolo26n-pose and other models that tile int64 tensors.Motivation and Context
The WebGPU Tile kernel was registered with
WebGpuSupportedNumberTypes()(float/fp16/int32/uint32 only), causing int64 tensors to fall back to CPU. Beyond the missing type constraint, the WGSL getter forInt64variables returns only the low 32 bits (i32(buf[offset].x)), and the default setter sign-extends from thati32— silently corrupting any value with non-zero high bits. SinceTileis pure data-movement with no arithmetic on element values, int64 is safe to support by treating each element as an opaquevec2<u32>copy.