-
Notifications
You must be signed in to change notification settings - Fork 25.6k
[quant] Add dequantize.tensors #34348
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: We need this function to do swap dequantize for prim::ListConstruct since the output of prim::ListConstruct is a list of Tensors Test Plan: . Reviewers: . Subscribers: Tasks: Tags: [ghstack-poisoned]
💊 CircleCI build failures summary and remediationsAs of commit d60b690 (more details on the Dr. CI page):
4 failures not recognized by patterns: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. This comment has been revised 134 times. |
Summary: We need this function to do swap dequantize for prim::ListConstruct since the output of prim::ListConstruct is a list of Tensors Test Plan: . Reviewers: . Subscribers: Tasks: Tags: [ghstack-poisoned]
Summary: We need this function to do swap dequantize for prim::ListConstruct since the output of prim::ListConstruct is a list of Tensors Test Plan: . Reviewers: . Subscribers: Tasks: Tags: [ghstack-poisoned]
Summary: We need this function to do swap dequantize for prim::ListConstruct since the output of prim::ListConstruct is a list of Tensors Test Plan: . Reviewers: . Subscribers: Tasks: Tags: [ghstack-poisoned]
Summary: We need this function to do swap dequantize for prim::ListConstruct since the output of prim::ListConstruct is a list of Tensors Test Plan: . Reviewers: . Subscribers: Tasks: Tags: [ghstack-poisoned]
Summary: We need this function to do swap dequantize for prim::ListConstruct since the output of prim::ListConstruct is a list of Tensors Test Plan: . Reviewers: . Subscribers: Tasks: Tags: [ghstack-poisoned]
Summary: We need this function to do swap dequantize for prim::ListConstruct since the output of prim::ListConstruct is a list of Tensors Test Plan: . Reviewers: . Subscribers: Tasks: Tags: [ghstack-poisoned]
Summary: We need this function to do swap dequantize for prim::ListConstruct since the output of prim::ListConstruct is a list of Tensors Test Plan: . Reviewers: . Subscribers: Tasks: Tags: Differential Revision: [D20504454](https://our.internmc.facebook.com/intern/diff/D20504454) [ghstack-poisoned]
Summary: We need this function to do swap dequantize for prim::ListConstruct since the output of prim::ListConstruct is a list of Tensors Test Plan: . Reviewers: . Subscribers: Tasks: Tags: Differential Revision: [D20504454](https://our.internmc.facebook.com/intern/diff/D20504454) [ghstack-poisoned]
Summary: We need this function to do swap dequantize for prim::ListConstruct since the output of prim::ListConstruct is a list of Tensors Test Plan: . Reviewers: . Subscribers: Tasks: Tags: Differential Revision: [D20504454](https://our.internmc.facebook.com/intern/diff/D20504454) [ghstack-poisoned]
Summary: We need this function to do swap dequantize for prim::ListConstruct since the output of prim::ListConstruct is a list of Tensors Test Plan: . Reviewers: . Subscribers: Tasks: Tags: Differential Revision: [D20504454](https://our.internmc.facebook.com/intern/diff/D20504454) [ghstack-poisoned]
return get_qtensorimpl(self)->quantizer()->dequantize(self); | ||
} | ||
|
||
std::vector<Tensor> dequantize_tensors_quant(TensorList tensors) { |
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.
Don't return a std::vector, return a TensorList instead (TensorList == torch::List). std::vector requires a copy behind the scenes.
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 that is not the type generated by native_functions.yaml, I looked up another function that returns Tensor[] and it says:
795:std::vector<Tensor> meshgrid(TensorList tensors); // {"schema": "aten::meshgrid(Tensor[] tensors) -> Tensor[]", "compound": "true"}
Summary: We need this function to do swap dequantize for prim::ListConstruct since the output of prim::ListConstruct is a list of Tensors Test Plan: . Reviewers: . Subscribers: Tasks: Tags: Differential Revision: [D20504454](https://our.internmc.facebook.com/intern/diff/D20504454) [ghstack-poisoned]
Summary: We need this function to do swap dequantize for prim::ListConstruct since the output of prim::ListConstruct is a list of Tensors Test Plan: . Reviewers: . Subscribers: Tasks: Tags: Differential Revision: [D20504454](https://our.internmc.facebook.com/intern/diff/D20504454) [ghstack-poisoned]
Summary: We need this function to do swap dequantize for prim::ListConstruct since the output of prim::ListConstruct is a list of Tensors Test Plan: . Reviewers: . Subscribers: Tasks: Tags: Differential Revision: [D20504454](https://our.internmc.facebook.com/intern/diff/D20504454) [ghstack-poisoned]
Summary: We need this function to do swap dequantize for prim::ListConstruct since the output of prim::ListConstruct is a list of Tensors Test Plan: . Reviewers: . Subscribers: Tasks: Tags: Differential Revision: [D20504454](https://our.internmc.facebook.com/intern/diff/D20504454) [ghstack-poisoned]
Summary: We need this function to do swap dequantize for prim::ListConstruct since the output of prim::ListConstruct is a list of Tensors Test Plan: . Reviewers: . Subscribers: Tasks: Tags: Differential Revision: [D20504454](https://our.internmc.facebook.com/intern/diff/D20504454) [ghstack-poisoned]
Summary: We need this function to do swap dequantize for prim::ListConstruct since the output of prim::ListConstruct is a list of Tensors Test Plan: . Reviewers: . Subscribers: Tasks: Tags: Differential Revision: [D20504454](https://our.internmc.facebook.com/intern/diff/D20504454) [ghstack-poisoned]
Summary: We need this function to do swap dequantize for prim::ListConstruct since the output of prim::ListConstruct is a list of Tensors Test Plan: . Reviewers: . Subscribers: Tasks: Tags: Differential Revision: [D20504454](https://our.internmc.facebook.com/intern/diff/D20504454) [ghstack-poisoned]
Summary: We need this function to do swap dequantize for prim::ListConstruct since the output of prim::ListConstruct is a list of Tensors Test Plan: . Reviewers: . Subscribers: Tasks: Tags: Differential Revision: [D20504454](https://our.internmc.facebook.com/intern/diff/D20504454) [ghstack-poisoned]
Summary: We need this function to do swap dequantize for prim::ListConstruct since the output of prim::ListConstruct is a list of Tensors Test Plan: . Reviewers: . Subscribers: Tasks: Tags: Differential Revision: [D20504454](https://our.internmc.facebook.com/intern/diff/D20504454) [ghstack-poisoned]
This pull request has been merged in 3fa7813. |
Summary: We need this function to do swap dequantize for prim::ListConstruct since the output of prim::ListConstruct is a list of Tensors Test Plan: . Reviewers: . Subscribers: Tasks: Tags: ghstack-source-id: c66bbf5 Pull Request resolved: pytorch/pytorch#34348
Stack from ghstack:
Summary:
We need this function to do swap dequantize for prim::ListConstruct since
the output of prim::ListConstruct is a list of Tensors
Test Plan:
.
Reviewers:
.
Subscribers:
Tasks:
Tags:
Differential Revision: D20504454