-
Notifications
You must be signed in to change notification settings - Fork 25.7k
[inductor] Cache get_operation_names/get_buffer_names #135446
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/135446
Note: Links to docs will display an error until the docs builds have been completed. ✅ No FailuresAs of commit a0bfb45 with merge base 8c738c9 ( This comment was automatically generated by Dr. CI and updates every 15 minutes. |
| @cache_on_self | ||
| def get_buffer_names(self) -> OrderedSet[str]: | ||
| return OrderedSet(out.get_name() for out in self.outputs) | ||
| return OrderedSet([out.get_name() for out in self.outputs]) |
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.
Is this optimization actually safe? can't self.outputs change?
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.
No, they are immutable.
Pull Request resolved: #135776 Approved by: https://github.com/oulgen ghstack dependencies: #135445, #135446
Before:  After:  Pull Request resolved: #135446 Approved by: https://github.com/oulgen ghstack dependencies: #135445
Pull Request resolved: #135776 Approved by: https://github.com/oulgen ghstack dependencies: #135445, #135446
Before:  After:  Pull Request resolved: pytorch#135446 Approved by: https://github.com/oulgen ghstack dependencies: pytorch#135445
Pull Request resolved: pytorch#135776 Approved by: https://github.com/oulgen ghstack dependencies: pytorch#135445, pytorch#135446
Before:  After:  Pull Request resolved: pytorch#135446 Approved by: https://github.com/oulgen ghstack dependencies: pytorch#135445
Pull Request resolved: pytorch#135776 Approved by: https://github.com/oulgen ghstack dependencies: pytorch#135445, pytorch#135446
ghstack-source-id: 5506449 Pull Request resolved: pytorch/pytorch#135446
Stack from ghstack (oldest at bottom):
Before:

After:

cc @voznesenskym @penguinwu @EikanWang @jgong5 @Guobing-Chen @XiaobingSuper @zhuhaozhe @blzheng @wenzhe-nrv @jiayisunx @ipiszy @yf225 @chenyang78 @kadeng @muchulee8 @ColinPeppler @amjames @desertfire @chauhang