-
Notifications
You must be signed in to change notification settings - Fork 25.7k
[inductor] Refactor ir.Layout into ir.OutputSpec #140910
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
Conversation
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/140910
Note: Links to docs will display an error until the docs builds have been completed. ❗ 1 Active SEVsThere are 1 currently active SEVs. If your PR is affected, please view them below: ✅ No FailuresAs of commit 20d94d8 with merge base 260d1dc ( This comment was automatically generated by Dr. CI and updates every 15 minutes. |
| query.get_dtype(), | ||
| [B, Hq, seq_len_q, v_head_dim], | ||
| stride=out_strides, | ||
| stride=[sympy.sympify(s) for s in out_strides], |
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.
MEH
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.
Maybe wanna circulate this with inductor devs too though :P
Pull Request resolved: #140912 Approved by: https://github.com/aorenste ghstack dependencies: #140895, #140910
This separate the concepts of a Layout (size/stride/etc) and an OutputSpec (which includes multiple outputs). Which should make typing easier. Pull Request resolved: pytorch#140910 Approved by: https://github.com/ezyang ghstack dependencies: pytorch#140895
Pull Request resolved: pytorch#140912 Approved by: https://github.com/aorenste ghstack dependencies: pytorch#140895, pytorch#140910
Stack from ghstack (oldest at bottom):
This separate the concepts of a Layout (size/stride/etc) and an OutputSpec (which includes multiple outputs). Which should make typing easier.
cc @voznesenskym @penguinwu @EikanWang @jgong5 @Guobing-Chen @XiaobingSuper @zhuhaozhe @blzheng @wenzhe-nrv @jiayisunx @ipiszy @yf225 @chenyang78 @kadeng @muchulee8 @ColinPeppler @amjames @desertfire @chauhang @aakhundov