Skip to content

Conversation

pytorchbot
Copy link
Collaborator

  • Previously, aten.where with non-quantized FP inputs can pass the the operator support check in INT profile, get partitioned, and then be removed from the partition due to FP inputs.

  • This will introduce dependency cycles, an invalid re-entry pattern partition -> outside -> partition, to the graph.

  • Workaround: when aten.where(cond, x, y) has FP x and y in INT profile, only partition if both come from dequantize ops (DQ_OPS). Note this may over-reject cases like dq -> op1 -> aten.where -> q that could be partitioned.

  • Don't partition aten.where with unsupported input dtype in FP profle.

Change-Id: I0cef30ffe36eeb6d9c8fae7618649292df242887

cc @digantdesai @freddan80 @per @zingo @oscarandersson8218

…#14506)

- Previously, aten.where with non-quantized FP inputs can pass the the
operator support check in INT profile, get partitioned, and then be
removed from the partition due to FP inputs.

- This will introduce dependency cycles, an invalid re-entry pattern
`partition -> outside -> partition`, to the graph.

- Workaround: when aten.where(cond, x, y) has FP x and y in INT profile,
only partition if both come from dequantize ops (DQ_OPS). Note this may
over-reject cases like `dq -> op1 -> aten.where -> q` that could be
partitioned.

- Don't partition aten.where with unsupported input dtype in FP profle.

Signed-off-by: Yufeng Shi <yufeng.shi@arm.com>
(cherry picked from commit df5bfd5)
Copy link

pytorch-bot bot commented Sep 24, 2025

🔗 Helpful Links

🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/executorch/14539

Note: Links to docs will display an error until the docs builds have been completed.

❌ 3 New Failures

As of commit d3bb903 with merge base e0dda90 (image):

NEW FAILURES - The following jobs have failed:

This comment was automatically generated by Dr. CI and updates every 15 minutes.

@meta-cla meta-cla bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Sep 24, 2025
@YufengShi-dudu YufengShi-dudu added this to the 1.0.0 milestone Sep 24, 2025
@GregoryComer
Copy link
Member

QNN failures are pre-existing and since resolved. Merging.

@GregoryComer GregoryComer merged commit 013c9c5 into release/1.0 Sep 24, 2025
120 of 124 checks passed
@GregoryComer GregoryComer deleted the cherry-pick-14506-by-pytorch_bot_bot_ branch September 24, 2025 22:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants