-
Notifications
You must be signed in to change notification settings - Fork 724
Add dim order assert #7561
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
Add dim order assert #7561
Conversation
neuropilot-captain
commented
Jan 9, 2025
- Add assert to AOT and runtime
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/executorch/7561
Note: Links to docs will display an error until the docs builds have been completed. ✅ No FailuresAs of commit 3c7c854 with merge base f370e78 ( This comment was automatically generated by Dr. CI and updates every 15 minutes. |
cccclai
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for supporting dim order!
|
@digantdesai @Gasoonjia should we use this pass https://github.com/search?q=repo%3Apytorch%2Fexecutorch%20DimOrderOpsRevertPass&type=code instead of not partition? @digantdesai - Yes, #4873 has more info. If you were lowering it before, which seems to be the case here, then you might also want to lower the dim_order variant of the same target. |
|
Fix Linterror |
| op_type = node.target.__name__ | ||
|
|
||
| # Skip until we can handle the dimension order representation | ||
| if op_type == "aten._to_copy.default": |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I assume you don't partition empty - that is another one of the dim_order ops. Just FYI.
|
@pytorchbot cherry-pick --onto release/0.5 -c fixnewfeature |
* Add dim order assert for MTK backend * Add dim order guard for mediatek backend AOT part * Fix lintrunner error * Remove unnecessary code --------- Co-authored-by: neuropilot-captain <[email protected]> Co-authored-by: Poyuan Jeng <[email protected]> (cherry picked from commit cd0fcc2)
Cherry picking #7561The cherry pick PR is at #7660 and it is recommended to link a fixnewfeature cherry pick PR with an issue. The following tracker issues are updated: Details for Dev Infra teamRaised by workflow job |
Add dim order assert (#7561) * Add dim order assert for MTK backend * Add dim order guard for mediatek backend AOT part * Fix lintrunner error * Remove unnecessary code --------- Co-authored-by: neuropilot-captain <[email protected]> Co-authored-by: Poyuan Jeng <[email protected]> (cherry picked from commit cd0fcc2) Co-authored-by: neuropilot-captain <[email protected]>
* Add dim order assert for MTK backend * Add dim order guard for mediatek backend AOT part * Fix lintrunner error * Remove unnecessary code --------- Co-authored-by: neuropilot-captain <[email protected]> Co-authored-by: Poyuan Jeng <[email protected]>