-
Notifications
You must be signed in to change notification settings - Fork 26.3k
[quant] aten::repeat work for quantized tensor #40644
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
Conversation
Summary: Test Plan: Reviewers: Subscribers: Tasks: Tags: [ghstack-poisoned]
| if (self.is_quantized()) { | ||
| result = at::empty_quantized(target_size, self); | ||
| } else { | ||
| result = at::empty(target_size, self.options()); |
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.
does dispatching on tensor type not work for at::empty?
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.
yeah, quantized parameters are not included in TensorOptions(self.options())
| variants: method | ||
| device_guard: False | ||
|
|
||
| - func: empty_quantized(int[] size, Tensor original) -> Tensor |
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.
The name seems a little non-intuitive to me. Maybe make it explicit that original has to be a quantized tensor.
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.
sg
Summary: Test Plan: Reviewers: Subscribers: Tasks: Tags: Differential Revision: [D22268558](https://our.internmc.facebook.com/intern/diff/D22268558) [ghstack-poisoned]
Summary: Test Plan: Reviewers: Subscribers: Tasks: Tags: Differential Revision: [D22268558](https://our.internmc.facebook.com/intern/diff/D22268558) [ghstack-poisoned]
Summary: Test Plan: Reviewers: Subscribers: Tasks: Tags: Differential Revision: [D22268558](https://our.internmc.facebook.com/intern/diff/D22268558) [ghstack-poisoned]
💊 CI failures summary and remediationsAs of commit 84ad128 (more details on the Dr. CI page):
1 job timed out:
This 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: Test Plan: Reviewers: Subscribers: Tasks: Tags: Differential Revision: [D22268558](https://our.internmc.facebook.com/intern/diff/D22268558) [ghstack-poisoned]
|
This pull request has been merged in 61a8de7. |
Summary: Pull Request resolved: #40644 Test Plan: Imported from OSS Differential Revision: D22268558 fbshipit-source-id: 3bc9a129bece1b547c519772ecc6b980780fb904
Summary: Pull Request resolved: #40644 Test Plan: Imported from OSS Differential Revision: D22268558 fbshipit-source-id: 3bc9a129bece1b547c519772ecc6b980780fb904
Summary: Pull Request resolved: #40644 Test Plan: Imported from OSS Differential Revision: D22268558 fbshipit-source-id: 3bc9a129bece1b547c519772ecc6b980780fb904
* [quant] aten::repeat work for quantized tensor (#40644) Summary: Pull Request resolved: #40644 Test Plan: Imported from OSS Differential Revision: D22268558 fbshipit-source-id: 3bc9a129bece1b547c519772ecc6b980780fb904 * [quant][graphmode][fix] remove unsupported ops in the list (#40653) Summary: Pull Request resolved: #40653 (Note: this ignores all push blocking failures!) Test Plan: Imported from OSS Differential Revision: D22271413 fbshipit-source-id: a01611b5d90849ac673fa5a310f910c858e907a3
Stack from ghstack:
Summary:
Test Plan:
Reviewers:
Subscribers:
Tasks:
Tags:
Differential Revision: D22268558