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
Move view handling logic to gen_inplace_or_view_type.py #53341
Conversation
[ghstack-poisoned]
💊 CI failures summary and remediationsAs of commit 3d09115 (more details on the Dr. CI page):
ci.pytorch.org: 1 failedThis comment was automatically generated by Dr. CI (expand for details).Follow this link to opt-out of these comments for your Pull Requests.Please report bugs/suggestions to the (internal) Dr. CI Users group. |
[ghstack-poisoned]
[ghstack-poisoned]
[ghstack-poisoned]
[ghstack-poisoned]
Test Plan: verified the generated VariableTypeEverything.cpp are the same after this PR. |
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.
Looks good!
It is so much easier to review simple refactor when there is no feature mixed into it :) Thanks for taking the time to do this!
[ghstack-poisoned]
@@ -0,0 +1,268 @@ | |||
from tools.codegen.api import cpp | |||
from tools.codegen.api.autograd import * |
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.
nit: any plans where we can avoid these? :D
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 can fix all the new ones introduced in this PR and send out a followup PR to clean up the folder later ;)
But I didn't find a way to add this in flake8 so it'll be hard to prevent future changes :P
[ghstack-poisoned]
Differential Revision: [D26973912](https://our.internmc.facebook.com/intern/diff/D26973912) [ghstack-poisoned]
Summary: Pull Request resolved: pytorch#53341 Test Plan: Imported from OSS Reviewed By: nikithamalgifb Differential Revision: D26973912 Pulled By: ailzhang fbshipit-source-id: ea31bdef0beac6996d509f5d45ebefa3ea8e2b89
Stack from ghstack:
Differential Revision: D26973912