[Inductor] Optimize identity permute in empty_permuted decomposition#169731
Closed
karthickai wants to merge 3 commits intogh/karthickai/30/basefrom
Closed
[Inductor] Optimize identity permute in empty_permuted decomposition#169731karthickai wants to merge 3 commits intogh/karthickai/30/basefrom
karthickai wants to merge 3 commits intogh/karthickai/30/basefrom
Conversation
[ghstack-poisoned]
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/169731
Note: Links to docs will display an error until the docs builds have been completed. ✅ No FailuresAs of commit 8d2cc72 with merge base a9dd532 ( This comment was automatically generated by Dr. CI and updates every 15 minutes. |
ProExpertProg
approved these changes
Dec 6, 2025
…omposition" This PR optimizes the empty_permuted decomposition to skip identity permute op (e.g `permute([0, 1]`)) when the permutation doesn't change the layout. Fixes part of the issue #169440 cc voznesenskym penguinwu EikanWang jgong5 Guobing-Chen XiaobingSuper zhuhaozhe blzheng wenzhe-nrv jiayisunx ipiszy kadeng muchulee8 amjames chauhang aakhundov coconutruben jataylo mlazos [ghstack-poisoned]
zou3519
reviewed
Dec 8, 2025
zou3519
approved these changes
Dec 8, 2025
…omposition" This PR optimizes the empty_permuted decomposition to skip identity permute op (e.g `permute([0, 1]`)) when the permutation doesn't change the layout. Fixes part of the issue #169440 cc voznesenskym penguinwu EikanWang jgong5 Guobing-Chen XiaobingSuper zhuhaozhe blzheng wenzhe-nrv jiayisunx ipiszy kadeng muchulee8 amjames chauhang aakhundov coconutruben jataylo mlazos [ghstack-poisoned]
Collaborator
Author
|
@pytorchbot merge |
Collaborator
Merge startedYour change will be merged once all checks pass (ETA 0-4 Hours). Learn more about merging in the wiki. Questions? Feedback? Please reach out to the PyTorch DevX Team |
liangxs
pushed a commit
to liangxs/pytorch
that referenced
this pull request
Dec 9, 2025
…ytorch#169731) This PR optimizes the empty_permuted decomposition to skip identity permute op (e.g `permute([0, 1]`)) when the permutation doesn't change the layout. Fixes part of the issue pytorch#169440 Pull Request resolved: pytorch#169731 Approved by: https://github.com/ProExpertProg, https://github.com/zou3519
skpark-rh
pushed a commit
to skpark-rh/pytorch
that referenced
this pull request
Dec 10, 2025
…ytorch#169731) This PR optimizes the empty_permuted decomposition to skip identity permute op (e.g `permute([0, 1]`)) when the permutation doesn't change the layout. Fixes part of the issue pytorch#169440 Pull Request resolved: pytorch#169731 Approved by: https://github.com/ProExpertProg, https://github.com/zou3519
This was referenced Jan 15, 2026
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.
Stack from ghstack (oldest at bottom):
This PR optimizes the empty_permuted decomposition to skip identity permute op (e.g
permute([0, 1])) when the permutation doesn't change the layout. Fixes part of the issue #169440cc @voznesenskym @penguinwu @EikanWang @jgong5 @Guobing-Chen @XiaobingSuper @zhuhaozhe @blzheng @wenzhe-nrv @jiayisunx @ipiszy @kadeng @muchulee8 @amjames @chauhang @aakhundov @coconutruben @jataylo @mlazos