Skip to content

[Inductor] Optimize identity permute in empty_permuted decomposition#169731

Closed
karthickai wants to merge 3 commits intogh/karthickai/30/basefrom
gh/karthickai/30/head
Closed

[Inductor] Optimize identity permute in empty_permuted decomposition#169731
karthickai wants to merge 3 commits intogh/karthickai/30/basefrom
gh/karthickai/30/head

Conversation

@karthickai
Copy link
Collaborator

@karthickai karthickai commented Dec 6, 2025

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 #169440

cc @voznesenskym @penguinwu @EikanWang @jgong5 @Guobing-Chen @XiaobingSuper @zhuhaozhe @blzheng @wenzhe-nrv @jiayisunx @ipiszy @kadeng @muchulee8 @amjames @chauhang @aakhundov @coconutruben @jataylo @mlazos

@pytorch-bot
Copy link

pytorch-bot bot commented Dec 6, 2025

🔗 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 Failures

As of commit 8d2cc72 with merge base a9dd532 (image):
💚 Looks good so far! There are no failures yet. 💚

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

…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]
karthickai added a commit that referenced this pull request 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]
karthickai added a commit that referenced this pull request Dec 8, 2025
@karthickai karthickai added the ciflow/trunk Trigger trunk jobs on your pull request label Dec 8, 2025
@karthickai
Copy link
Collaborator Author

@pytorchbot merge

@pytorchmergebot
Copy link
Collaborator

Merge started

Your 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

Advanced Debugging
Check the merge workflow status
here

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
@github-actions github-actions bot deleted the gh/karthickai/30/head branch January 8, 2026 02:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants