Skip to content
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

Support (un)squeeze in XNNPACK delegate via conversion to view #7961

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

GregoryComer
Copy link
Member

Summary

This PR adds a new pass to the XNNPACK delegate to convert squeeze and unsqueeze nodes into views. These are then lowered to XNN static_reshape ops.

Note that this PR includes #7959, as it relies on lowering via view.

Test plan

Added test coverage at the pass and operator level under backends/xnnpack/test/ops/test_squeeze.py, backends/xnnpack/test/ops/test_unsqueeze.py, and backends/xnnpack/test/passes/test_convert_squeeze_to_view_pass.py.

@GregoryComer GregoryComer requested a review from mcr229 January 27, 2025 08:36
Copy link

pytorch-bot bot commented Jan 27, 2025

🔗 Helpful Links

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

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

✅ No Failures

As of commit d9c50c9 with merge base e78ed83 (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 Jan 27, 2025
@GregoryComer GregoryComer added release notes: xnnpack Changes to the XNNPack backend delegate and removed CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. labels Jan 27, 2025
@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 Jan 27, 2025
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. release notes: xnnpack Changes to the XNNPack backend delegate
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants