-
Notifications
You must be signed in to change notification settings - Fork 24.7k
[PyTorch] Change representation of SizesAndStrides #47508
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
This moves SizesAndStrides to a specialized representation that is 5 words smaller in the common case of tensor rank 5 or less. Differential Revision: [D24772023](https://our.internmc.facebook.com/intern/diff/D24772023/) **NOTE FOR REVIEWERS**: This PR has internal Facebook specific changes or comments, please review them on [Phabricator](https://our.internmc.facebook.com/intern/diff/D24772023/)! [ghstack-poisoned]
This moves SizesAndStrides to a specialized representation that is 5 words smaller in the common case of tensor rank 5 or less. Differential Revision: [D24772023](https://our.internmc.facebook.com/intern/diff/D24772023/) **NOTE FOR REVIEWERS**: This PR has internal Facebook specific changes or comments, please review them on [Phabricator](https://our.internmc.facebook.com/intern/diff/D24772023/)! ghstack-source-id: 116029079 Pull Request resolved: #47508
💊 CI failures summary and remediationsAs of commit 6974421 (more details on the Dr. CI page):
🕵️ 1 new failure recognized by patternsThe following CI failures do not appear to be due to upstream breakages:
|
…entation of SizesAndStrides" This moves SizesAndStrides to a specialized representation that is 5 words smaller in the common case of tensor rank 5 or less. Differential Revision: [D24772023](https://our.internmc.facebook.com/intern/diff/D24772023/) **NOTE FOR REVIEWERS**: This PR has internal Facebook specific changes or comments, please review them on [Phabricator](https://our.internmc.facebook.com/intern/diff/D24772023/)! [ghstack-poisoned]
This moves SizesAndStrides to a specialized representation that is 5 words smaller in the common case of tensor rank 5 or less. Differential Revision: [D24772023](https://our.internmc.facebook.com/intern/diff/D24772023/) **NOTE FOR REVIEWERS**: This PR has internal Facebook specific changes or comments, please review them on [Phabricator](https://our.internmc.facebook.com/intern/diff/D24772023/)! [ghstack-poisoned]
Pull Request resolved: #47508 This moves SizesAndStrides to a specialized representation that is 5 words smaller in the common case of tensor rank 5 or less. ghstack-source-id: 116190714 Differential Revision: [D24772023](https://our.internmc.facebook.com/intern/diff/D24772023/) **NOTE FOR REVIEWERS**: This PR has internal Facebook specific changes or comments, please review them on [Phabricator](https://our.internmc.facebook.com/intern/diff/D24772023/)!
I know the point of this change isn't really to affect instruction count, but I'm curious to know which way instruction count on the microbenchmarks goes this way. I'm sort of expecting count to go up but maybe I will be surprised. |
…ing in next update on "[PyTorch] Change representation of SizesAndStrides" This moves SizesAndStrides to a specialized representation that is 5 words smaller in the common case of tensor rank 5 or less. Differential Revision: [D24772023](https://our.internmc.facebook.com/intern/diff/D24772023/) **NOTE FOR REVIEWERS**: This PR has internal Facebook specific changes or comments, please review them on [Phabricator](https://our.internmc.facebook.com/intern/diff/D24772023/)! [ghstack-poisoned]
Pull Request resolved: #47508 This moves SizesAndStrides to a specialized representation that is 5 words smaller in the common case of tensor rank 5 or less. ghstack-source-id: 116353586 Differential Revision: [D24772023](https://our.internmc.facebook.com/intern/diff/D24772023/) **NOTE FOR REVIEWERS**: This PR has internal Facebook specific changes or comments, please review them on [Phabricator](https://our.internmc.facebook.com/intern/diff/D24772023/)!
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.
Not adding comments since you're planning a major rewrite. Let me know when that is finished so I can take a look.
Sorry, #47507 (comment) was meant for this PR. |
…cleanup yet on "[PyTorch] Change representation of SizesAndStrides" This moves SizesAndStrides to a specialized representation that is 5 words smaller in the common case of tensor rank 5 or less. Differential Revision: [D24772023](https://our.internmc.facebook.com/intern/diff/D24772023/) **NOTE FOR REVIEWERS**: This PR has internal Facebook specific changes or comments, please review them on [Phabricator](https://our.internmc.facebook.com/intern/diff/D24772023/)! [ghstack-poisoned]
…esAndStrides" This moves SizesAndStrides to a specialized representation that is 5 words smaller in the common case of tensor rank 5 or less. Differential Revision: [D24772023](https://our.internmc.facebook.com/intern/diff/D24772023/) **NOTE FOR REVIEWERS**: This PR has internal Facebook specific changes or comments, please review them on [Phabricator](https://our.internmc.facebook.com/intern/diff/D24772023/)! [ghstack-poisoned]
Pull Request resolved: #47508 This moves SizesAndStrides to a specialized representation that is 5 words smaller in the common case of tensor rank 5 or less. ghstack-source-id: 116368231 Differential Revision: [D24772023](https://our.internmc.facebook.com/intern/diff/D24772023/) **NOTE FOR REVIEWERS**: This PR has internal Facebook specific changes or comments, please review them on [Phabricator](https://our.internmc.facebook.com/intern/diff/D24772023/)!
This moves SizesAndStrides to a specialized representation that is 5 words smaller in the common case of tensor rank 5 or less. Differential Revision: [D24772023](https://our.internmc.facebook.com/intern/diff/D24772023/) **NOTE FOR REVIEWERS**: This PR has internal Facebook specific changes or comments, please review them on [Phabricator](https://our.internmc.facebook.com/intern/diff/D24772023/)! [ghstack-poisoned]
Pull Request resolved: #47508 This moves SizesAndStrides to a specialized representation that is 5 words smaller in the common case of tensor rank 5 or less. ghstack-source-id: 116385725 Differential Revision: [D24772023](https://our.internmc.facebook.com/intern/diff/D24772023/) **NOTE FOR REVIEWERS**: This PR has internal Facebook specific changes or comments, please review them on [Phabricator](https://our.internmc.facebook.com/intern/diff/D24772023/)!
This moves SizesAndStrides to a specialized representation that is 5 words smaller in the common case of tensor rank 5 or less. Differential Revision: [D24772023](https://our.internmc.facebook.com/intern/diff/D24772023/) **NOTE FOR REVIEWERS**: This PR has internal Facebook specific changes or comments, please review them on [Phabricator](https://our.internmc.facebook.com/intern/diff/D24772023/)! [ghstack-poisoned]
…esAndStrides" This moves SizesAndStrides to a specialized representation that is 5 words smaller in the common case of tensor rank 5 or less. Differential Revision: [D24772023](https://our.internmc.facebook.com/intern/diff/D24772023/) **NOTE FOR REVIEWERS**: This PR has internal Facebook specific changes or comments, please review them on [Phabricator](https://our.internmc.facebook.com/intern/diff/D24772023/)! [ghstack-poisoned]
Pull Request resolved: #47508 This moves SizesAndStrides to a specialized representation that is 5 words smaller in the common case of tensor rank 5 or less. ghstack-source-id: 117505381 Differential Revision: [D24772023](https://our.internmc.facebook.com/intern/diff/D24772023/) **NOTE FOR REVIEWERS**: This PR has internal Facebook specific changes or comments, please review them on [Phabricator](https://our.internmc.facebook.com/intern/diff/D24772023/)!
This moves SizesAndStrides to a specialized representation that is 5 words smaller in the common case of tensor rank 5 or less. Differential Revision: [D24772023](https://our.internmc.facebook.com/intern/diff/D24772023/) **NOTE FOR REVIEWERS**: This PR has internal Facebook specific changes or comments, please review them on [Phabricator](https://our.internmc.facebook.com/intern/diff/D24772023/)! [ghstack-poisoned]
Pull Request resolved: #47508 This moves SizesAndStrides to a specialized representation that is 5 words smaller in the common case of tensor rank 5 or less. ghstack-source-id: 117593407 Differential Revision: [D24772023](https://our.internmc.facebook.com/intern/diff/D24772023/) **NOTE FOR REVIEWERS**: This PR has internal Facebook specific changes or comments, please review them on [Phabricator](https://our.internmc.facebook.com/intern/diff/D24772023/)!
…esAndStrides" This moves SizesAndStrides to a specialized representation that is 5 words smaller in the common case of tensor rank 5 or less. Differential Revision: [D24772023](https://our.internmc.facebook.com/intern/diff/D24772023/) **NOTE FOR REVIEWERS**: This PR has internal Facebook specific changes or comments, please review them on [Phabricator](https://our.internmc.facebook.com/intern/diff/D24772023/)! [ghstack-poisoned]
…t on "[PyTorch] Change representation of SizesAndStrides" This moves SizesAndStrides to a specialized representation that is 5 words smaller in the common case of tensor rank 5 or less. Differential Revision: [D24772023](https://our.internmc.facebook.com/intern/diff/D24772023/) **NOTE FOR REVIEWERS**: This PR has internal Facebook specific changes or comments, please review them on [Phabricator](https://our.internmc.facebook.com/intern/diff/D24772023/)! [ghstack-poisoned]
Pull Request resolved: #47508 This moves SizesAndStrides to a specialized representation that is 5 words smaller in the common case of tensor rank 5 or less. ghstack-source-id: 117939947 Differential Revision: [D24772023](https://our.internmc.facebook.com/intern/diff/D24772023/) **NOTE FOR REVIEWERS**: This PR has internal Facebook specific changes or comments, please review them on [Phabricator](https://our.internmc.facebook.com/intern/diff/D24772023/)!
This moves SizesAndStrides to a specialized representation that is 5 words smaller in the common case of tensor rank 5 or less. Differential Revision: [D24772023](https://our.internmc.facebook.com/intern/diff/D24772023/) **NOTE FOR REVIEWERS**: This PR has internal Facebook specific changes or comments, please review them on [Phabricator](https://our.internmc.facebook.com/intern/diff/D24772023/)! [ghstack-poisoned]
Pull Request resolved: #47508 This moves SizesAndStrides to a specialized representation that is 5 words smaller in the common case of tensor rank 5 or less. ghstack-source-id: 118022738 Differential Revision: [D24772023](https://our.internmc.facebook.com/intern/diff/D24772023/) **NOTE FOR REVIEWERS**: This PR has internal Facebook specific changes or comments, please review them on [Phabricator](https://our.internmc.facebook.com/intern/diff/D24772023/)!
This moves SizesAndStrides to a specialized representation that is 5 words smaller in the common case of tensor rank 5 or less. Differential Revision: [D24772023](https://our.internmc.facebook.com/intern/diff/D24772023/) **NOTE FOR REVIEWERS**: This PR has internal Facebook specific changes or comments, please review them on [Phabricator](https://our.internmc.facebook.com/intern/diff/D24772023/)! [ghstack-poisoned]
Pull Request resolved: #47508 This moves SizesAndStrides to a specialized representation that is 5 words smaller in the common case of tensor rank 5 or less. ghstack-source-id: 118146841 Differential Revision: [D24772023](https://our.internmc.facebook.com/intern/diff/D24772023/) **NOTE FOR REVIEWERS**: This PR has internal Facebook specific changes or comments, please review them on [Phabricator](https://our.internmc.facebook.com/intern/diff/D24772023/)!
…] Change representation of SizesAndStrides" This moves SizesAndStrides to a specialized representation that is 5 words smaller in the common case of tensor rank 5 or less. Differential Revision: [D24772023](https://our.internmc.facebook.com/intern/diff/D24772023/) **NOTE FOR REVIEWERS**: This PR has internal Facebook specific changes or comments, please review them on [Phabricator](https://our.internmc.facebook.com/intern/diff/D24772023/)! [ghstack-poisoned]
Pull Request resolved: #47508 This moves SizesAndStrides to a specialized representation that is 5 words smaller in the common case of tensor rank 5 or less. ghstack-source-id: 118223017 Differential Revision: [D24772023](https://our.internmc.facebook.com/intern/diff/D24772023/) **NOTE FOR REVIEWERS**: This PR has internal Facebook specific changes or comments, please review them on [Phabricator](https://our.internmc.facebook.com/intern/diff/D24772023/)!
This moves SizesAndStrides to a specialized representation that is 5 words smaller in the common case of tensor rank 5 or less. Differential Revision: [D24772023](https://our.internmc.facebook.com/intern/diff/D24772023/) **NOTE FOR REVIEWERS**: This PR has internal Facebook specific changes or comments, please review them on [Phabricator](https://our.internmc.facebook.com/intern/diff/D24772023/)! [ghstack-poisoned]
Pull Request resolved: #47508 This moves SizesAndStrides to a specialized representation that is 5 words smaller in the common case of tensor rank 5 or less. ghstack-source-id: 118554470 Differential Revision: [D24772023](https://our.internmc.facebook.com/intern/diff/D24772023/) **NOTE FOR REVIEWERS**: This PR has internal Facebook specific changes or comments, please review them on [Phabricator](https://our.internmc.facebook.com/intern/diff/D24772023/)!
This moves SizesAndStrides to a specialized representation that is 5 words smaller in the common case of tensor rank 5 or less. Differential Revision: [D24772023](https://our.internmc.facebook.com/intern/diff/D24772023/) **NOTE FOR REVIEWERS**: This PR has internal Facebook specific changes or comments, please review them on [Phabricator](https://our.internmc.facebook.com/intern/diff/D24772023/)! [ghstack-poisoned]
Pull Request resolved: #47508 This moves SizesAndStrides to a specialized representation that is 5 words smaller in the common case of tensor rank 5 or less. ghstack-source-id: 118633676 Differential Revision: [D24772023](https://our.internmc.facebook.com/intern/diff/D24772023/) **NOTE FOR REVIEWERS**: This PR has internal Facebook specific changes or comments, please review them on [Phabricator](https://our.internmc.facebook.com/intern/diff/D24772023/)!
This moves SizesAndStrides to a specialized representation that is 5 words smaller in the common case of tensor rank 5 or less. Differential Revision: [D24772023](https://our.internmc.facebook.com/intern/diff/D24772023/) **NOTE FOR REVIEWERS**: This PR has internal Facebook specific changes or comments, please review them on [Phabricator](https://our.internmc.facebook.com/intern/diff/D24772023/)! [ghstack-poisoned]
Pull Request resolved: #47508 This moves SizesAndStrides to a specialized representation that is 5 words smaller in the common case of tensor rank 5 or less. ghstack-source-id: 119313560 Differential Revision: [D24772023](https://our.internmc.facebook.com/intern/diff/D24772023/) **NOTE FOR REVIEWERS**: This PR has internal Facebook specific changes or comments, please review them on [Phabricator](https://our.internmc.facebook.com/intern/diff/D24772023/)!
This pull request has been merged in b73c018. |
Summary: Pull Request resolved: pytorch#47508 This moves SizesAndStrides to a specialized representation that is 5 words smaller in the common case of tensor rank 5 or less. ghstack-source-id: 119313560 Test Plan: SizesAndStridesTest added in previous diff passes under ASAN + UBSAN. Run framework overhead benchmarks. Looks more or less neutral. Reviewed By: ezyang Differential Revision: D24772023 fbshipit-source-id: 0a75fd6c2daabb0769e2f803e80e2d6831871316
Stack from ghstack:
This moves SizesAndStrides to a specialized representation
that is 5 words smaller in the common case of tensor rank 5 or less.
Differential Revision: D24772023
NOTE FOR REVIEWERS: This PR has internal Facebook specific changes or comments, please review them on Phabricator!