Skip to content

Conversation

@Sebastian-Larsson
Copy link
Collaborator

@Sebastian-Larsson Sebastian-Larsson commented Jul 1, 2025

mean.dim decomposes into an avg_pool2d, which occurs after quantization annotation. This led to the avg_pool2d node not having quantization parameters for the output. mean.dim is added to CheckProperQuantization so that if the decomposition occurs the avg_pool2d operator will not be delegated.

cc @digantdesai @freddan80 @per @zingo @oscarandersson8218

mean.dim decomposes into an avg_pool2d, which occurs after quantization
annotation. This led to the avg_pool2d node not having quantization
parameters for the output. mean.dim is added to CheckProperQuantization
so that if the decomposition occurs the avg_pool2d operator will not be
delegated.

Change-Id: I5c43530880e7f4cb99a2adaa2f250c0bf749aa8c
Signed-off-by: Sebastian Larsson <[email protected]>
@Sebastian-Larsson Sebastian-Larsson added partner: arm For backend delegation, kernels, demo, etc. from the 3rd-party partner, Arm ciflow/trunk release notes: arm Changes to the ARM backend delegate labels Jul 1, 2025
@pytorch-bot
Copy link

pytorch-bot bot commented Jul 1, 2025

🔗 Helpful Links

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

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

❌ 1 New Failure

As of commit b40cd8b with merge base 929ec94 (image):

NEW FAILURE - The following job has failed:

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

@facebook-github-bot facebook-github-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 Jul 1, 2025
Copy link
Collaborator

@zingo zingo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Got a fail on
backends/arm/test/models/test_nn_functional.py::test_nn_functional_BI[cosine_similarity]
could it be random?

Copy link
Collaborator

@zingo zingo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Try to retrigger to get rid of arm fail?

@zingo
Copy link
Collaborator

zingo commented Jul 1, 2025

I retriggered fail arm job.

@zingo zingo merged commit e6a0d53 into pytorch:main Jul 2, 2025
266 of 268 checks passed
BujSet pushed a commit to BujSet/executorch that referenced this pull request Jul 2, 2025
mean.dim decomposes into an avg_pool2d, which occurs after quantization
annotation. This led to the avg_pool2d node not having quantization
parameters for the output. mean.dim is added to CheckProperQuantization
so that if the decomposition occurs the avg_pool2d operator will not be
delegated.

Signed-off-by: Sebastian Larsson <[email protected]>
Tanish2101 pushed a commit to Tanish2101/executorch that referenced this pull request Jul 9, 2025
mean.dim decomposes into an avg_pool2d, which occurs after quantization
annotation. This led to the avg_pool2d node not having quantization
parameters for the output. mean.dim is added to CheckProperQuantization
so that if the decomposition occurs the avg_pool2d operator will not be
delegated.

Signed-off-by: Sebastian Larsson <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ciflow/trunk CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. partner: arm For backend delegation, kernels, demo, etc. from the 3rd-party partner, Arm release notes: arm Changes to the ARM backend delegate

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants