Skip to content

Remove Type constructor from TensorOptions, add Type::options#11189

Closed
ezyang wants to merge 21 commits intomasterfrom
export-D9628281
Closed

Remove Type constructor from TensorOptions, add Type::options#11189
ezyang wants to merge 21 commits intomasterfrom
export-D9628281

Conversation

@ezyang
Copy link
Contributor

@ezyang ezyang commented Sep 2, 2018

Remove Type constructor from TensorOptions, add Type::options

Replaces it with an operator TensorOptions() method on
Type, reestablishing the implicit conversion. I originally
wanted to get rid of the implicit conversion entirely, but
there were a lot of use-sites, so I added it back to avoid
a huge codemod. In this patch, I only had to fix sites that
used the optional device_index API.

Differential Revision: D9628281

ezyang added 16 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: D9557315
Differential Version: 56444203
Differential Revision: D9561478
Differential Version: 56446440
Differential Revision: D9561478
Differential Version: 56449391
Differential Revision: D9561478
Differential Version: 56541404
Differential Revision: D9561478
Differential Version: 56541860
Differential Revision: D9561478
Differential Version: 56652964
…11181)

Differential Revision: D9561478
Differential Version: 56766544
Differential Revision: D9628281
Differential Version: 56766268
Differential Revision: D9561478
Differential Version: 56766790
Differential Revision: D9628281
Differential Version: 56768265
Differential Revision: D9561478
Differential Version: 56768709
Differential Revision: D9628281
Differential Version: 56768781
@ezyang ezyang changed the base branch from export-D9561478 to master September 3, 2018 19:13
Differential Revision: D9628281
Differential Version: 56805602
zdevito pushed a commit to zdevito/ATen that referenced this pull request Sep 4, 2018
Summary:
Pull Request resolved: pytorch/pytorch#11189

Replaces it with an operator TensorOptions() method on
Type, reestablishing the implicit conversion.  I originally
wanted to get rid of the implicit conversion entirely, but
there were a *lot* of use-sites, so I added it back to avoid
a huge codemod.  In this patch, I only had to fix sites that
used the optional device_index API.

Reviewed By: cpuhrsch

Differential Revision: D9628281

fbshipit-source-id: 5fe2a68eefb77a3c9bb446f03a94ad723ef90210
@goldsborough goldsborough deleted the export-D9628281 branch September 4, 2018 22:26
PenghuiCheng pushed a commit to PenghuiCheng/pytorch that referenced this pull request Sep 11, 2018
…h#11189)

Summary:
Pull Request resolved: pytorch#11189

Replaces it with an operator TensorOptions() method on
Type, reestablishing the implicit conversion.  I originally
wanted to get rid of the implicit conversion entirely, but
there were a *lot* of use-sites, so I added it back to avoid
a huge codemod.  In this patch, I only had to fix sites that
used the optional device_index API.

Reviewed By: cpuhrsch

Differential Revision: D9628281

fbshipit-source-id: 5fe2a68eefb77a3c9bb446f03a94ad723ef90210
@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.

2 participants