Skip to content

Conversation

@smessmer
Copy link
Contributor

@smessmer smessmer commented Sep 18, 2019

Stack from ghstack:

Differential Revision: D17465434

@pytorchbot pytorchbot added module: internals Related to internal abstractions in c10 and ATen module: operators labels Sep 18, 2019
smessmer added a commit that referenced this pull request Sep 18, 2019
Differential Revision: [D17465434](https://our.internmc.facebook.com/intern/diff/D17465434/)

ghstack-source-id: 90378058
Pull Request resolved: #26434
@smessmer smessmer changed the title [qip] Add ScalarType/Layout/Device/MemoryLayout ops to c10 [wip] Add ScalarType/Layout/Device/MemoryLayout ops to c10 Sep 19, 2019
smessmer added a commit that referenced this pull request Sep 19, 2019
Pull Request resolved: #26434


ghstack-source-id: 90395273

Differential Revision: [D17465434](https://our.internmc.facebook.com/intern/diff/D17465434/)
@smessmer smessmer changed the title [wip] Add ScalarType/Layout/Device/MemoryLayout ops to c10 Move Generator ops to c10 Sep 19, 2019
smessmer added a commit that referenced this pull request Sep 19, 2019
Pull Request resolved: #26434


ghstack-source-id: 90435818

Differential Revision: [D17465434](https://our.internmc.facebook.com/intern/diff/D17465434/)
smessmer added a commit that referenced this pull request Sep 19, 2019
Pull Request resolved: #26434


ghstack-source-id: 90459909

Differential Revision: [D17465434](https://our.internmc.facebook.com/intern/diff/D17465434/)
static TypePtr call() {
if (!isCustomClassRegistered<T>()) {
throw c10::Error("Type could not be converted to any of the known types.", "");
throw c10::Error(std::string() + "Type " + typeid(T).name() + " could not be converted to any of the known types.", "");
Copy link
Contributor

Choose a reason for hiding this comment

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

Oy! RTTI!!

Copy link
Contributor Author

Choose a reason for hiding this comment

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

good catch. Seems I forgot to remove my debug code...

I'm actually hoping to enable this after the gcc5 switch using compile time type identification, having a better error message here would be really nice, but that's separate from this PR.

Copy link
Contributor

@ezyang ezyang left a comment

Choose a reason for hiding this comment

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

RTTI

smessmer added a commit that referenced this pull request Sep 21, 2019
Pull Request resolved: #26434


ghstack-source-id: 90548550

Differential Revision: [D17465434](https://our.internmc.facebook.com/intern/diff/D17465434/)
@smessmer smessmer requested a review from ezyang September 21, 2019 03:51
smessmer added a commit that referenced this pull request Sep 21, 2019
Pull Request resolved: #26434


ghstack-source-id: 90552742

Differential Revision: [D17465434](https://our.internmc.facebook.com/intern/diff/D17465434/)
smessmer added a commit that referenced this pull request Sep 22, 2019
Pull Request resolved: #26434


ghstack-source-id: 90557243

Differential Revision: [D17465434](https://our.internmc.facebook.com/intern/diff/D17465434/)
@smessmer
Copy link
Contributor Author

@ezyang can you take another look?

smessmer added a commit that referenced this pull request Sep 27, 2019
Pull Request resolved: #26434


ghstack-source-id: 90902124

Differential Revision: [D17465434](https://our.internmc.facebook.com/intern/diff/D17465434/)
zdevito pushed a commit to zdevito/ATen that referenced this pull request Sep 27, 2019
Summary:
Pull Request resolved: pytorch/pytorch#26434

ghstack-source-id: 90902124

Test Plan: unit tests

Differential Revision: D17465434

fbshipit-source-id: 469206d44e328c19008daf2f6a323dcd1ac97984
@facebook-github-bot
Copy link
Contributor

This pull request has been merged in b60656b.

@facebook-github-bot facebook-github-bot deleted the gh/smessmer/50/head branch October 28, 2019 22:19
pdlive215 pushed a commit to pdlive215/pytorch that referenced this pull request Nov 27, 2019
Summary:
Pull Request resolved: pytorch#26434

ghstack-source-id: 90902124

Test Plan: unit tests

Differential Revision: D17465434

fbshipit-source-id: 469206d44e328c19008daf2f6a323dcd1ac97984
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Merged module: internals Related to internal abstractions in c10 and ATen

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants