[Vulkan] Keep unrepresentable and symbolic scalars out of the delegate - #23208
Closed
mergennachin wants to merge 1 commit into
Closed
mergennachin wants to merge 1 commit into
mergennachin wants to merge 1 commit into
Conversation
The binary-scalar and comparison kernels receive scalars as int32 or float, yet the partitioner accepted NaN, integers outside int32 and symbolic scalars, which lowered with wrong values or failed in the graph builder. is_scalar_value_supported rejects them for pow.Tensor_Scalar and the comparison scalar ops. The partitioner also rejects SymFloat and SymBool values and keeps SymInt producers on CPU when a consumer is unsupported; node support is memoized so that check stays linear. Authored with OpenAI Codex; split planned with Claude Code.
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/executorch/23208
Note: Links to docs will display an error until the docs builds have been completed. ❗ 1 Active SEVsThere are 1 currently active SEVs. If your PR is affected, please view them below: ⏳ No Failures, 1 PendingAs of commit 61b4851 with merge base a318382 ( This comment was automatically generated by Dr. CI and updates every 15 minutes. |
This was referenced Sep 28, 2026
This branch was successfully deployed
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.
Superseded by #23247, part 8/15 of the ghstack replacement series. The current integration PR is #23254. This PR is closed in favor of the replacement; its previous description and review history are retained.
The binary-scalar and comparison kernels receive scalars as int32 or float, yet the partitioner accepted NaN, integers outside int32 and symbolic scalars, which lowered with wrong values or failed in the graph builder. is_scalar_value_supported rejects them for pow.Tensor_Scalar and the comparison scalar ops. The partitioner also rejects SymFloat and SymBool values and keeps SymInt producers on CPU when a consumer is unsupported; node support is memoized so that check stays linear.
Part 8/15 of the Vulkan transformer and operator-conformance stack. Depends on #23207; review against the selected base branch. Integration PR: #23162.
Validation: 5 passed, 2 warnings in 150.36s (0:02:30). Lintrunner and git diff --check pass. Native tests use MoltenVK with portable CPU kernels; hardware and SwiftShader CI are pending.
Authored with OpenAI Codex; split planned with Claude Code.
cc @SS-JIA @manuelcandales @digantdesai @cbilgin