-
Notifications
You must be signed in to change notification settings - Fork 26.3k
Move Generator ops to c10 #26434
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Move Generator ops to c10 #26434
Conversation
Differential Revision: [D17465434](https://our.internmc.facebook.com/intern/diff/D17465434/) [ghstack-poisoned]
Differential Revision: [D17465434](https://our.internmc.facebook.com/intern/diff/D17465434/) ghstack-source-id: 90378058 Pull Request resolved: #26434
Differential Revision: [D17465434](https://our.internmc.facebook.com/intern/diff/D17465434/) [ghstack-poisoned]
Pull Request resolved: #26434 ghstack-source-id: 90395273 Differential Revision: [D17465434](https://our.internmc.facebook.com/intern/diff/D17465434/)
Differential Revision: [D17465434](https://our.internmc.facebook.com/intern/diff/D17465434/) [ghstack-poisoned]
Differential Revision: [D17465434](https://our.internmc.facebook.com/intern/diff/D17465434/) [ghstack-poisoned]
Pull Request resolved: #26434 ghstack-source-id: 90435818 Differential Revision: [D17465434](https://our.internmc.facebook.com/intern/diff/D17465434/)
Differential Revision: [D17465434](https://our.internmc.facebook.com/intern/diff/D17465434/) [ghstack-poisoned]
Differential Revision: [D17465434](https://our.internmc.facebook.com/intern/diff/D17465434/) [ghstack-poisoned]
Differential Revision: [D17465434](https://our.internmc.facebook.com/intern/diff/D17465434/) [ghstack-poisoned]
Pull Request resolved: #26434 ghstack-source-id: 90459909 Differential Revision: [D17465434](https://our.internmc.facebook.com/intern/diff/D17465434/)
aten/src/ATen/core/jit_type.h
Outdated
| 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.", ""); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oy! RTTI!!
There was a problem hiding this comment.
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.
ezyang
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
RTTI
Differential Revision: [D17465434](https://our.internmc.facebook.com/intern/diff/D17465434/) [ghstack-poisoned]
Pull Request resolved: #26434 ghstack-source-id: 90548550 Differential Revision: [D17465434](https://our.internmc.facebook.com/intern/diff/D17465434/)
Differential Revision: [D17465434](https://our.internmc.facebook.com/intern/diff/D17465434/) [ghstack-poisoned]
Pull Request resolved: #26434 ghstack-source-id: 90552742 Differential Revision: [D17465434](https://our.internmc.facebook.com/intern/diff/D17465434/)
Differential Revision: [D17465434](https://our.internmc.facebook.com/intern/diff/D17465434/) [ghstack-poisoned]
Pull Request resolved: #26434 ghstack-source-id: 90557243 Differential Revision: [D17465434](https://our.internmc.facebook.com/intern/diff/D17465434/)
|
@ezyang can you take another look? |
Differential Revision: [D17465434](https://our.internmc.facebook.com/intern/diff/D17465434/) [ghstack-poisoned]
Pull Request resolved: #26434 ghstack-source-id: 90902124 Differential Revision: [D17465434](https://our.internmc.facebook.com/intern/diff/D17465434/)
Summary: Pull Request resolved: pytorch/pytorch#26434 ghstack-source-id: 90902124 Test Plan: unit tests Differential Revision: D17465434 fbshipit-source-id: 469206d44e328c19008daf2f6a323dcd1ac97984
|
This pull request has been merged in b60656b. |
Summary: Pull Request resolved: pytorch#26434 ghstack-source-id: 90902124 Test Plan: unit tests Differential Revision: D17465434 fbshipit-source-id: 469206d44e328c19008daf2f6a323dcd1ac97984
Stack from ghstack:
Differential Revision: D17465434