-
Notifications
You must be signed in to change notification settings - Fork 22.6k
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
[quant] Reduce number of variants of add/mul #42769
Conversation
Summary: Some of the quantized add and mul can have the same name Test Plan: Reviewers: Subscribers: Tasks: Tags: [ghstack-poisoned]
Summary: Some of the quantized add and mul can have the same name Test Plan: Reviewers: Subscribers: Tasks: Tags: ghstack-source-id: d2afcc7edefd5e76613c80ce47d57132c420afc5 Pull Request resolved: #42769
💊 CI failures summary and remediationsAs of commit ec38153 (more details on the Dr. CI page):
ci.pytorch.org: 1 failedThis comment was automatically generated by Dr. CI (expand for details).Follow this link to opt-out of these comments for your Pull Requests.Please report bugs/suggestions on the GitHub issue tracker or post in the (internal) Dr. CI Users group. This comment has been revised 4 times. |
Summary: Some of the quantized add and mul can have the same name Test Plan: Reviewers: Subscribers: Tasks: Tags: [ghstack-poisoned]
Summary: Some of the quantized add and mul can have the same name Test Plan: Reviewers: Subscribers: Tasks: Tags: ghstack-source-id: 991533bfaa7fe68399ca16a1abbf7b594f4dc870 Pull Request resolved: #42769
@@ -267,7 +267,14 @@ Tensor qadd_scalar_tensor_out(Tensor qa, Tensor b, Tensor out) { | |||
|
|||
TORCH_LIBRARY_IMPL(quantized, QuantizedCPU, m) { | |||
m.impl("add", TORCH_FN(qadd</*ReLUFused=*/false>)); | |||
m.impl("add.out", TORCH_FN(qadd_out</*ReLUFused=*/false>)); | |||
m.impl("add.Scalar", TORCH_FN(qadd_scalar</*ReLUFused=*/false>)); |
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.
Why Scalar
and not scalar
?
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.
this is following the naming of other overloaded functions in https://github.com/pytorch/pytorch/blob/master/aten/src/ATen/native/native_functions.yaml
This pull request has been merged in a846ed5. |
Stack from ghstack:
Summary:
Some of the quantized add and mul can have the same name
Test Plan:
Reviewers:
Subscribers:
Tasks:
Tags:
Differential Revision: D23054822