Skip to content

Conversation

@ezyang
Copy link
Contributor

@ezyang ezyang commented Sep 1, 2018

No description provided.

_(float,Float,d) /* 6 */ \
_(double,Double,d) /* 7 */
_(double,Double,d) /* 7 */ \
_(std::complex<float>,ComplexFloat,z) /* 8 */ \

This comment was marked as off-topic.

@ssnl
Copy link
Collaborator

ssnl commented Sep 1, 2018

Why is there a revert commit?

edit: Is it to fix build?

@ezyang
Copy link
Contributor Author

ezyang commented Sep 2, 2018

Yeah, this can't merge as is, there's a temporary revert so that I can actually do local dev.

ComplexHalf seems like a reasonable thing to add for future compatibility.

@ezyang
Copy link
Contributor Author

ezyang commented Sep 2, 2018

Hmm, ComplexHalf is a bit troublesome to use with std::complex, because it only has three well defined specializations and at::Half ain't one of them. @Roger-luo, would you happen to know what a good C++ type to use in this case would be?

@ezyang ezyang force-pushed the pr/complex-dtype branch 2 times, most recently from 0065ff5 to 4fc9827 Compare September 2, 2018 03:32
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 has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.

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 has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.

@ssnl
Copy link
Collaborator

ssnl commented Sep 2, 2018

One way would be to do the same thing we did for half and create at::Half2 (cuda uses half2). Probably a nontrivial amount of work though...

@ezyang
Copy link
Contributor Author

ezyang commented Sep 2, 2018

Yeah, that's what I ended up doing in this patch.

We don't generate a corresponding Type implementations for them,
so this doesn't do anything at the moment.

We don't plan on supporting complex32 in the near future, but
it is added to reserve the name and number in case we do at
some point in the future.

Signed-off-by: Edward Z. Yang <[email protected]>
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 has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.

Copy link
Collaborator

@ssnl ssnl left a comment

Choose a reason for hiding this comment

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

LGTM

zdevito pushed a commit to zdevito/ATen that referenced this pull request Sep 4, 2018
Summary:
We don't generate a corresponding Type implementations for them,
so this doesn't do anything at the moment.

We don't plan on supporting complex32 in the near future, but
it is added to reserve the name and number in case we do at
some point in the future.

Pull Request resolved: pytorch/pytorch#11173

Reviewed By: SsnL

Differential Revision: D9627477

Pulled By: ezyang

fbshipit-source-id: f49a44ab1c92d8a33130c249ac7b234f210a65e6
PenghuiCheng pushed a commit to PenghuiCheng/pytorch that referenced this pull request Sep 11, 2018
Summary:
We don't generate a corresponding Type implementations for them,
so this doesn't do anything at the moment.

We don't plan on supporting complex32 in the near future, but
it is added to reserve the name and number in case we do at
some point in the future.

Pull Request resolved: pytorch#11173

Reviewed By: SsnL

Differential Revision: D9627477

Pulled By: ezyang

fbshipit-source-id: f49a44ab1c92d8a33130c249ac7b234f210a65e6
@PhilippPelz PhilippPelz mentioned this pull request Oct 17, 2018
10 tasks
@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