-
Notifications
You must be signed in to change notification settings - Fork 26.3k
Move QScheme ops to c10 #30134
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 QScheme ops to c10 #30134
Conversation
Differential Revision: [D18609716](https://our.internmc.facebook.com/intern/diff/D18609716/) [ghstack-poisoned]
Differential Revision: [D18609716](https://our.internmc.facebook.com/intern/diff/D18609716/) ghstack-source-id: 94249120 Pull Request resolved: #30134
Differential Revision: [D18609716](https://our.internmc.facebook.com/intern/diff/D18609716/) [ghstack-poisoned]
Pull Request resolved: #30134 ghstack-source-id: 94798586 Differential Revision: [D18609716](https://our.internmc.facebook.com/intern/diff/D18609716/)
Differential Revision: [D18609716](https://our.internmc.facebook.com/intern/diff/D18609716/) [ghstack-poisoned]
Pull Request resolved: #30134 ghstack-source-id: 95012521 Differential Revision: [D18609716](https://our.internmc.facebook.com/intern/diff/D18609716/)
smessmer
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.
looks good, assuming CI passes
aten/src/ATen/core/jit_type.h
Outdated
| struct CAFFE2_API QschemeType : public Type { | ||
| static QschemeTypePtr create() { | ||
| return QschemeTypePtr( | ||
| new QschemeType()); // NOLINT(modernize-make-shared) |
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.
let's use make_shared here
aten/src/ATen/core/jit_type.h
Outdated
| GeneratorType() : Type(TypeKind::GeneratorType) {} | ||
| }; | ||
|
|
||
| struct QschemeType; |
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.
I think the naming convention is QScheme, not Qscheme
aten/src/ATen/core/jit_type.h
Outdated
| return "Qscheme"; | ||
| } | ||
| static const TypeKind Kind = TypeKind::QschemeType; | ||
| // global singletonq |
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.
typo
Differential Revision: [D18609716](https://our.internmc.facebook.com/intern/diff/D18609716/) [ghstack-poisoned]
Differential Revision: [D18609716](https://our.internmc.facebook.com/intern/diff/D18609716/) [ghstack-poisoned]
Pull Request resolved: #30134 ghstack-source-id: 95055387 Differential Revision: [D18609716](https://our.internmc.facebook.com/intern/diff/D18609716/)
|
This pull request has been merged in 81e4739. |
Summary: Pull Request resolved: pytorch#30134 ghstack-source-id: 95055387 Test Plan: buck build mode/dev caffe2:generate-code Differential Revision: D18609716 fbshipit-source-id: fec39359e0b97387a9b13f8179d72a731cc61808
Stack from ghstack:
Differential Revision: D18609716