Skip to content

Conversation

ezyang
Copy link
Contributor

@ezyang ezyang commented Oct 28, 2020

Stack from ghstack:

There is a new invariant that emit_body is only ever called when
strategy is 'use_derived', which means we can delete a bunch of code.
This removes the last use of TypeXXX.h headers.

Note that this change makes sense, as the TypeDefault entries are
registered as Math entries, which means they automatically populate
Autograd (and we no longer have to register them ourselves). Ailing
did all the hard work, this is just the payoff.

Signed-off-by: Edward Z. Yang ezyang@fb.com

Differential Revision: D24596584

There is a new invariant that emit_body is only ever called when
strategy is 'use_derived', which means we can delete a bunch of code.
This removes the last use of TypeXXX.h headers.

Note that this change makes sense, as the TypeDefault entries are
registered as Math entries, which means they automatically populate
Autograd (and we no longer have to register them ourselves).  Ailing
did all the hard work, this is just the payoff.

Signed-off-by: Edward Z. Yang <ezyang@fb.com>

[ghstack-poisoned]
ezyang added a commit that referenced this pull request Oct 28, 2020
There is a new invariant that emit_body is only ever called when
strategy is 'use_derived', which means we can delete a bunch of code.
This removes the last use of TypeXXX.h headers.

Note that this change makes sense, as the TypeDefault entries are
registered as Math entries, which means they automatically populate
Autograd (and we no longer have to register them ourselves).  Ailing
did all the hard work, this is just the payoff.

Signed-off-by: Edward Z. Yang <ezyang@fb.com>

ghstack-source-id: 95da6a3
Pull Request resolved: #47000
@ezyang ezyang requested review from ljk53 and ailzhang October 28, 2020 17:34
Copy link
Contributor

@ailzhang ailzhang left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!!

@codecov
Copy link

codecov bot commented Oct 28, 2020

Codecov Report

Merging #47000 into gh/ezyang/860/base will decrease coverage by 0.00%.
The diff coverage is n/a.

@@                  Coverage Diff                   @@
##           gh/ezyang/860/base   #47000      +/-   ##
======================================================
- Coverage               68.95%   68.95%   -0.01%     
======================================================
  Files                     434      434              
  Lines                   56248    56248              
======================================================
- Hits                    38786    38785       -1     
- Misses                  17462    17463       +1     

@facebook-github-bot
Copy link
Contributor

@ezyang merged this pull request in c689b4d.

@facebook-github-bot facebook-github-bot deleted the gh/ezyang/860/head branch November 2, 2020 15:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants