Reduce number of variables in codegen#38369
Closed
smessmer wants to merge 2 commits intogh/smessmer/221/basefrom
Closed
Reduce number of variables in codegen#38369smessmer wants to merge 2 commits intogh/smessmer/221/basefrom
smessmer wants to merge 2 commits intogh/smessmer/221/basefrom
Conversation
Seems we have a lot of variables in codegen that carry duplicate information. This PR is step 1/2 of removing them. It unifies all use sites to use the same instance and adds assertions to proof that both instances actually carry the same data. If this lands successfully, then a future PR will remove the other instances and the assertions. Differential Revision: [D21537983](https://our.internmc.facebook.com/intern/diff/D21537983/) [ghstack-poisoned]
smessmer
added a commit
that referenced
this pull request
May 13, 2020
Seems we have a lot of variables in codegen that carry duplicate information. This PR is step 1/2 of removing them. It unifies all use sites to use the same instance and adds assertions to proof that both instances actually carry the same data. If this lands successfully, then a future PR will remove the other instances and the assertions. Differential Revision: [D21537983](https://our.internmc.facebook.com/intern/diff/D21537983/) ghstack-source-id: 103980358 Pull Request resolved: #38369
💊 CI failures summary and remediationsAs of commit f1a1108 (more details on the Dr. CI page):
❄️ 1 failure tentatively classified as flakybut reruns have not yet been triggered to confirm:
|
Seems we have a lot of variables in codegen that carry duplicate information. This PR is step 1/2 of removing them. It unifies all use sites to use the same instance and adds assertions to proof that both instances actually carry the same data. If this lands successfully, then a future PR will remove the other instances and the assertions. Differential Revision: [D21537983](https://our.internmc.facebook.com/intern/diff/D21537983/) [ghstack-poisoned]
smessmer
added a commit
that referenced
this pull request
May 14, 2020
Pull Request resolved: #38369 Seems we have a lot of variables in codegen that carry duplicate information. This PR is removing them. It unifies all use sites to use the same instance ghstack-source-id: 104067031 Differential Revision: [D21537983](https://our.internmc.facebook.com/intern/diff/D21537983/)
ezyang
approved these changes
May 14, 2020
Contributor
ezyang
left a comment
There was a problem hiding this comment.
Thanks. Could you please diff the generated files before and after and verify there are no changes?
Contributor
Author
confirmed |
Contributor
|
This pull request has been merged in feb2457. |
laurentdupin
pushed a commit
to laurentdupin/pytorch
that referenced
this pull request
Apr 24, 2026
Summary: Pull Request resolved: pytorch#38369 Seems we have a lot of variables in codegen that carry duplicate information. This PR is removing them. It unifies all use sites to use the same instance ghstack-source-id: 104067031 Test Plan: waitforsandcastle Differential Revision: D21537983 fbshipit-source-id: 8d3ce3d3f712f7ba355e8c192798dfefaf847dac
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Stack from ghstack:
Seems we have a lot of variables in codegen that carry duplicate information.
This PR is removing them. It unifies all use sites to use the same instance
Differential Revision: D21537983