Skip to content

Change default variants to 'function'.#11247

Closed
ezyang wants to merge 114 commits intomasterfrom
export-D9648570
Closed

Change default variants to 'function'.#11247
ezyang wants to merge 114 commits intomasterfrom
export-D9648570

Conversation

@ezyang
Copy link
Contributor

@ezyang ezyang commented Sep 4, 2018

Stack:
    :black_circle:  #11247 Change default variants to 'function'.  💚

Previously, the default for a declaration in native_functions.yaml
was ['function', 'method'], i.e., generate both a method and
function for every binding. We now believe this is inappropriate:
the majority of new kernels added to PyTorch should live as
free functions, NOT methods. Thus, we change the default accordingly.

I also took the opportunity to de-method some "internal" functions
that had a leading underscore. While, strictly speaking, this is a
BC breaking change, I believe it is highly unlikely anyone was using
these directly.

Differential Revision: D9648570

ezyang added 30 commits August 29, 2018 09:11
Differential Revision: D9557315
Differential Version: 56407314
Differential Revision: D9557315
Differential Version: 56413294
Differential Revision: D9557315
Differential Version: 56415719
Differential Revision: D9557315
Differential Version: 56424143
Differential Revision: D9557315
Differential Version: 56437859
Differential Revision: D9561478
Differential Version: 56437861
Differential Revision: D9561478
Differential Version: 56440382
Differential Revision: D9561478
Differential Version: 56440854
Differential Revision: D9562197
Differential Version: 56442349
Differential Revision: D9562312
Differential Version: 56443146
Differential Revision: D9562312
Differential Version: 5644335
Differential Revision: D9562467
Differential Version: 56443875
Differential Revision: D9562467
Differential Version: 56445436
Differential Revision: D9562312
Differential Version: 56445886
Differential Revision: D9557315
Differential Version: 56444203
Differential Revision: D9561478
Differential Version: 56446440
Differential Revision: D9562467
Differential Version: 56447016
Differential Revision: D9562467
Differential Version: 56447216
Differential Revision: D9561478
Differential Version: 56449391
Differential Revision: D9564206
Differential Version: 56452969
Differential Revision: D9562312
Differential Version: 56453321
Differential Revision: D9564516
Differential Version: 56455053
Differential Revision: D9562467
Differential Version: 56473044
Differential Revision: D9562197
Differential Version: 56473286
Differential Revision: D9578398
Differential Version: 56517363
Differential Revision: D9578399
Differential Version: 56517362
Differential Revision: D9578734
Differential Version: 56519039
Differential Revision: D9578734
Differential Version: 56520207
Differential Revision: D9578734
Differential Version: 56526151
Differential Revision: D9581560
Differential Version: 56526196
Differential Revision: D9646190
Differential Version: 56879138
Differential Revision: D9631619
Differential Version: 56884928
Differential Revision: D9634750
Differential Version: 56884930
Differential Revision: D9634904
Differential Version: 56884926
Differential Revision: D9646190
Differential Version: 56884925
Differential Revision: D9646190
Differential Version: 56896300
Differential Revision: D9648570
Differential Version: 56896711
Differential Revision: D9634904
Differential Version: 56940396
Differential Revision: D9646190
Differential Version: 56940395
Differential Revision: D9648570
Differential Version: 56940398
Differential Revision: D9634904
Differential Version: 56941443
Differential Revision: D9646190
Differential Version: 56941456
Differential Revision: D9648570
Differential Version: 56941455
Differential Revision: D9648570
Differential Version: 56950051
@ezyang ezyang changed the base branch from export-D9646190 to master September 5, 2018 16:09
Copy link
Contributor

@goldsborough goldsborough left a comment

Choose a reason for hiding this comment

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

looks goat to me

Differential Revision: D9648570
Differential Version: 57251564
Copy link
Contributor

@cpuhrsch cpuhrsch left a comment

Choose a reason for hiding this comment

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

cool

zdevito pushed a commit to zdevito/ATen that referenced this pull request Sep 8, 2018
Summary:
Pull Request resolved: pytorch/pytorch#11247

Previously, the default for a declaration in native_functions.yaml
was ['function', 'method'], i.e., generate both a method and
function for every binding.  We now believe this is inappropriate:
the majority of new kernels added to PyTorch should live as
free functions, NOT methods.  Thus, we change the default accordingly.

I also took the opportunity to de-method some "internal" functions
that had a leading underscore.  While, strictly speaking, this is a
BC breaking change, I believe it is highly unlikely anyone was using
these directly.

Reviewed By: yf225

Differential Revision: D9648570

fbshipit-source-id: 8b94647b824e0899d6d18aa5585aaedc9d9957d2
PenghuiCheng pushed a commit to PenghuiCheng/pytorch that referenced this pull request Sep 11, 2018
Summary:
Pull Request resolved: pytorch#11247

Previously, the default for a declaration in native_functions.yaml
was ['function', 'method'], i.e., generate both a method and
function for every binding.  We now believe this is inappropriate:
the majority of new kernels added to PyTorch should live as
free functions, NOT methods.  Thus, we change the default accordingly.

I also took the opportunity to de-method some "internal" functions
that had a leading underscore.  While, strictly speaking, this is a
BC breaking change, I believe it is highly unlikely anyone was using
these directly.

Reviewed By: yf225

Differential Revision: D9648570

fbshipit-source-id: 8b94647b824e0899d6d18aa5585aaedc9d9957d2
@soumith soumith deleted the export-D9648570 branch February 21, 2019 23:25
@ezyang ezyang added the merged label Jun 26, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants