Skip to content
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

Closed
wants to merge 8 commits into from

Conversation

ailzhang
Copy link
Contributor

@ailzhang ailzhang commented Mar 5, 2021

Stack from ghstack:

Differential Revision: D26973912

@facebook-github-bot
Copy link
Contributor

facebook-github-bot commented Mar 5, 2021

💊 CI failures summary and remediations

As of commit 3d09115 (more details on the Dr. CI page):


  • 2/2 failures possibly* introduced in this PR
    • 2/2 non-scanned failure(s)

ci.pytorch.org: 1 failed


This 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.

@ailzhang ailzhang requested review from ezyang and bhosmer March 8, 2021 16:19
@ailzhang
Copy link
Contributor Author

ailzhang commented Mar 8, 2021

Test Plan: verified the generated VariableTypeEverything.cpp are the same after this PR.

Copy link
Collaborator

@albanD albanD left a 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!

tools/autograd/gen_autograd.py Show resolved Hide resolved
@@ -0,0 +1,268 @@
from tools.codegen.api import cpp
from tools.codegen.api.autograd import *
Copy link
Collaborator

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

Copy link
Contributor Author

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

@facebook-github-bot
Copy link
Contributor

@ailzhang merged this pull request in aeb3e93.

@facebook-github-bot facebook-github-bot deleted the gh/ailzhang/49/head branch March 15, 2021 14:17
xsacha pushed a commit to xsacha/pytorch that referenced this pull request Mar 31, 2021
Summary: Pull Request resolved: pytorch#53341

Test Plan: Imported from OSS

Reviewed By: nikithamalgifb

Differential Revision: D26973912

Pulled By: ailzhang

fbshipit-source-id: ea31bdef0beac6996d509f5d45ebefa3ea8e2b89
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants