Skip to content

Add filter function to XNNPack Quantizer #10626

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 2, 2025

Conversation

pssrawat
Copy link
Contributor

@pssrawat pssrawat commented May 1, 2025

Summary:
Like HTP quantizer, add support so that user can specify a filter function to xnnpack quantizer. If specified, we only quantize nodes that return True for the filter function as well. This allows a much finer control on how we quantize a graph.

For multichannel ASR, we don't want to quantize certain nodes in certain layers of the encoder. These nodes don't have a proper module_name, so having a proper controlled suppression of quantization for such nodes is not feasible without a filter function.

Differential Revision: D73677442

Copy link

pytorch-bot bot commented May 1, 2025

🔗 Helpful Links

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

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

✅ No Failures

As of commit 251698a with merge base e912c65 (image):
💚 Looks good so far! There are no failures yet. 💚

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

This pull request was exported from Phabricator. Differential Revision: D73677442

@pssrawat pssrawat force-pushed the export-D73677442 branch from dad79c2 to e9cdd19 Compare May 1, 2025 23:56
pssrawat added a commit to pssrawat/executorch that referenced this pull request May 1, 2025
Summary:

Like HTP quantizer, add support so that user can specify a filter function to xnnpack quantizer. If specified, we only quantize nodes that return True for the filter function as well. This allows a much finer control on how we quantize a graph.

For multichannel ASR, we don't want to quantize certain nodes in certain layers of the encoder. These nodes don't have a proper module_name, so having a proper controlled suppression of quantization for such nodes is not feasible without a filter function.

Reviewed By: mcr229

Differential Revision: D73677442
Summary:
Pull Request resolved: pytorch#10626

Like HTP quantizer, add support so that user can specify a filter function to xnnpack quantizer. If specified, we only quantize nodes that return True for the filter function as well. This allows a much finer control on how we quantize a graph.

For multichannel ASR, we don't want to quantize certain nodes in certain layers of the encoder. These nodes don't have a proper module_name, so having a proper controlled suppression of quantization for such nodes is not feasible without a filter function.

Reviewed By: mcr229

Differential Revision: D73677442
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D73677442

@pssrawat pssrawat force-pushed the export-D73677442 branch from e9cdd19 to 251698a Compare May 1, 2025 23:59
@facebook-github-bot facebook-github-bot merged commit d7030aa into pytorch:main May 2, 2025
85 of 87 checks passed
jhelsby pushed a commit to jhelsby/executorch that referenced this pull request May 9, 2025
Differential Revision: D73677442

Pull Request resolved: pytorch#10626
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. fb-exported topic: not user facing
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants