You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 1f517e1
Browse filesBrowse the repository at this point in the historyBrowse files
[Vulkan] Pass typed fill values to full and make it resizable (pytorch#23250)
The full shaders always received the fill value as a float, which loses
int32 fills above 2^24 and is ill-defined for bools. Full.cpp now passes
the fill value in the output's accumulator type. Both full shaders
explicitly declare the matching fill UBO type for each output variant,
independent of the accumulator-type helper. full, full_like, zeros, ones
and their _like variants are marked resizable so they can live inside
dynamic-shape delegates, and fill values the output dtype cannot
represent stay on CPU.
Part 11/15 of the Vulkan transformer and operator-conformance stack.
Depends on pytorch#23249; review against the selected base branch. Integration
PR: pytorch#23254.
Validation: The earlier MoltenVK/portable-kernel run had 6 passes and 2
warnings in 113.26s (0:01:53). For this follow-up, all 8 full shader
variants compiled with glslc; commit-hook lint and git diff --check
pass. Native tests have not been rerun since this edit; hardware and
SwiftShader CI are pending.
Recreates pytorch#23211 through ghstack. Prior review discussion remains on
that PR.
Authored with OpenAI Codex; split planned with Claude Code.
cc @SS-JIA@manuelcandales@digantdesai@cbilgin
0 commit comments