Skip to content

Header cleanup #48728

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

Closed
wants to merge 6 commits into from
Closed

Header cleanup #48728

wants to merge 6 commits into from

Conversation

ezyang
Copy link
Contributor

@ezyang ezyang commented Dec 2, 2020

Stack from ghstack:

Mostly removing unnecessary includes so that TensorIterator.h can be
included from NativeFunctions.h without causing cycles. There some
cases where I moved code around so that I didn't have to pull in other
unnecessary stuff.

I also moved TensorIterator from ATen/native to ATen so that it is available
even on mobile (where native headers aren't installed)

Signed-off-by: Edward Z. Yang [email protected]

Differential Revision: D25278030

Mostly removing unnecessary includes so that TensorIterator.h can be
included from NativeFunctions.h without causing cycles.  There some
cases where I moved code around so that I didn't have to pull in other
unnecessary stuff.

Signed-off-by: Edward Z. Yang <[email protected]>

[ghstack-poisoned]
@dr-ci
Copy link

dr-ci bot commented Dec 2, 2020

💊 CI failures summary and remediations

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


💚 💚 Looks good so far! There are no failures yet. 💚 💚


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 on the GitHub issue tracker or post in the (internal) Dr. CI Users group.

See how this bot performed.

This comment has been revised 18 times.

Mostly removing unnecessary includes so that TensorIterator.h can be
included from NativeFunctions.h without causing cycles.  There some
cases where I moved code around so that I didn't have to pull in other
unnecessary stuff.

Signed-off-by: Edward Z. Yang <[email protected]>

[ghstack-poisoned]
Mostly removing unnecessary includes so that TensorIterator.h can be
included from NativeFunctions.h without causing cycles.  There some
cases where I moved code around so that I didn't have to pull in other
unnecessary stuff.

Signed-off-by: Edward Z. Yang <[email protected]>

[ghstack-poisoned]
Mostly removing unnecessary includes so that TensorIterator.h can be
included from NativeFunctions.h without causing cycles.  There some
cases where I moved code around so that I didn't have to pull in other
unnecessary stuff.

Signed-off-by: Edward Z. Yang <[email protected]>

[ghstack-poisoned]
Mostly removing unnecessary includes so that TensorIterator.h can be
included from NativeFunctions.h without causing cycles.  There some
cases where I moved code around so that I didn't have to pull in other
unnecessary stuff.

Signed-off-by: Edward Z. Yang <[email protected]>

[ghstack-poisoned]
Mostly removing unnecessary includes so that TensorIterator.h can be
included from NativeFunctions.h without causing cycles.  There some
cases where I moved code around so that I didn't have to pull in other
unnecessary stuff.

Signed-off-by: Edward Z. Yang <[email protected]>

Differential Revision: [D25278030](https://our.internmc.facebook.com/intern/diff/D25278030)

[ghstack-poisoned]
@codecov
Copy link

codecov bot commented Dec 3, 2020

Codecov Report

Merging #48728 (fddd90c) into gh/ezyang/881/base (1ebd284) will increase coverage by 0.00%.
The diff coverage is 95.74%.

@@                 Coverage Diff                 @@
##           gh/ezyang/881/base   #48728   +/-   ##
===================================================
  Coverage               80.83%   80.83%           
===================================================
  Files                    1860     1861    +1     
  Lines                  200678   200678           
===================================================
+ Hits                   162223   162225    +2     
+ Misses                  38455    38453    -2     

ezyang added a commit to ezyang/pytorch that referenced this pull request Dec 3, 2020
Mostly removing unnecessary includes so that TensorIterator.h can be
included from NativeFunctions.h without causing cycles.  There some
cases where I moved code around so that I didn't have to pull in other
unnecessary stuff.

Signed-off-by: Edward Z. Yang <[email protected]>

ghstack-source-id: e8dbc21
Pull Request resolved: pytorch#48728
@facebook-github-bot
Copy link
Contributor

@ezyang merged this pull request in 93973ee.

@facebook-github-bot facebook-github-bot deleted the gh/ezyang/881/head branch December 7, 2020 15:21
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.

3 participants