Skip to content

Make Type a (mostly) pure virtual class; TypeDefault for impls (#11013)#11181

Closed
ezyang wants to merge 1 commit intopytorch:masterfrom
ezyang:export-D9561478
Closed

Make Type a (mostly) pure virtual class; TypeDefault for impls (#11013)#11181
ezyang wants to merge 1 commit intopytorch:masterfrom
ezyang:export-D9561478

Conversation

@ezyang
Copy link
Contributor

@ezyang ezyang commented Sep 2, 2018

Summary:
Pull Request resolved: #11013

Previously, the parent class Type also contained a large number
of implementations, for things like broadcasting and native
functions that didn't need dispatch. We'd like to be able
to reference this interface from Tensor even when we don't
have any of these implementations are available.

To do this, we convert Type into a truly pure virtual interface,
and move all of the implementations to TypeDefault.

Differential Revision: D9561478

@ezyang ezyang force-pushed the export-D9561478 branch 2 times, most recently from 0c4461c to ec6591b Compare September 2, 2018 04:03
Copy link
Contributor

@facebook-github-bot facebook-github-bot left a comment

Choose a reason for hiding this comment

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

ezyang is landing this pull request. If you are a Facebook employee, you can view this diff on Phabricator.

ezyang added a commit that referenced this pull request Sep 2, 2018
…11181)

Differential Revision: D9561478
Differential Version: 56766544
…ch#11013) (pytorch#11013)

Summary:
Pull Request resolved: pytorch#11013

Previously, the parent class Type also contained a large number
of implementations, for things like broadcasting and native
functions that didn't need dispatch.  We'd like to be able
to reference this interface from Tensor even when we don't
have any of these implementations are available.

To do this, we convert Type into a truly pure virtual interface,
and move all of the implementations to TypeDefault.
Pull Request resolved: pytorch#11181

Differential Revision: D9561478

fbshipit-source-id: e0fb7c19aa088e8325d2c1bc4522234d5ecd5baf
@ezyang ezyang closed this Sep 2, 2018
facebook-github-bot pushed a commit that referenced this pull request Sep 2, 2018
… (#11013)

Summary:
Pull Request resolved: #11013

Previously, the parent class Type also contained a large number
of implementations, for things like broadcasting and native
functions that didn't need dispatch.  We'd like to be able
to reference this interface from Tensor even when we don't
have any of these implementations are available.

To do this, we convert Type into a truly pure virtual interface,
and move all of the implementations to TypeDefault.
Pull Request resolved: #11181

Differential Revision: D9561478

Pulled By: ezyang

fbshipit-source-id: 13c49d80bc547551adf524b1cf1d691bfe311133
zdevito pushed a commit to zdevito/ATen that referenced this pull request Sep 2, 2018
…3) (#11013)

Summary:
Pull Request resolved: pytorch/pytorch#11013

Previously, the parent class Type also contained a large number
of implementations, for things like broadcasting and native
functions that didn't need dispatch.  We'd like to be able
to reference this interface from Tensor even when we don't
have any of these implementations are available.

To do this, we convert Type into a truly pure virtual interface,
and move all of the implementations to TypeDefault.
Pull Request resolved: pytorch/pytorch#11181

Differential Revision: D9561478

Pulled By: ezyang

fbshipit-source-id: 13c49d80bc547551adf524b1cf1d691bfe311133
PenghuiCheng pushed a commit to PenghuiCheng/pytorch that referenced this pull request Sep 11, 2018
…ch#11013) (pytorch#11013)

Summary:
Pull Request resolved: pytorch#11013

Previously, the parent class Type also contained a large number
of implementations, for things like broadcasting and native
functions that didn't need dispatch.  We'd like to be able
to reference this interface from Tensor even when we don't
have any of these implementations are available.

To do this, we convert Type into a truly pure virtual interface,
and move all of the implementations to TypeDefault.
Pull Request resolved: pytorch#11181

Differential Revision: D9561478

Pulled By: ezyang

fbshipit-source-id: 13c49d80bc547551adf524b1cf1d691bfe311133
@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