Skip to content

Delete TypeDefault call code generation logic in VariableType#47000

Closed
ezyang wants to merge 1 commit intogh/ezyang/860/basefrom
gh/ezyang/860/head
Closed

Delete TypeDefault call code generation logic in VariableType#47000
ezyang wants to merge 1 commit intogh/ezyang/860/basefrom
gh/ezyang/860/head

Conversation

@ezyang
Copy link
Copy Markdown
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 ailzhang and ljk53 October 28, 2020 17:34
Copy link
Copy Markdown
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
Copy Markdown

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
Copy Markdown
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
laurentdupin pushed a commit to laurentdupin/pytorch that referenced this pull request Apr 24, 2026
…h#47000)

Summary:
Pull Request resolved: pytorch#47000

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>

Test Plan: Imported from OSS

Reviewed By: albanD

Differential Revision: D24596584

Pulled By: ezyang

fbshipit-source-id: 6fa754b5f16e75cf2dcbf437887c0fdfda5e44b1
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