-
Notifications
You must be signed in to change notification settings - Fork 594
[ET-VK][Ops] dequantize ops skeleton test framework #11480
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
Skeleton framework that is needed to build out the dequantize_per_tensor and dequantize_per_token operators based on cpu implementation Differential Revision: [D76267021](https://our.internmc.facebook.com/intern/diff/D76267021/) [ghstack-poisoned]
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/executorch/11480
Note: Links to docs will display an error until the docs builds have been completed. ❌ 1 New Failure, 1 Unrelated FailureAs of commit 8005443 with merge base 8cfa858 ( NEW FAILURE - The following job has failed:
FLAKY - The following job failed but was likely due to flakiness present on trunk:
This comment was automatically generated by Dr. CI and updates every 15 minutes. |
This pull request was exported from Phabricator. Differential Revision: D76267021 |
Skeleton framework that is needed to build out the dequantize_per_tensor and dequantize_per_token operators based on cpu implementation Differential Revision: [D76267021](https://our.internmc.facebook.com/intern/diff/D76267021/) [ghstack-poisoned]
This pull request was exported from Phabricator. Differential Revision: D76267021 |
Skeleton framework that is needed to build out the dequantize_per_tensor and dequantize_per_token operators based on cpu implementation Differential Revision: [D76267021](https://our.internmc.facebook.com/intern/diff/D76267021/) [ghstack-poisoned]
This pull request was exported from Phabricator. Differential Revision: D76267021 |
// | ||
|
||
// Helper function to get the name of a ScalarType for better error messages | ||
std::string scalar_type_name(c10::ScalarType dtype) { |
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.
isn't this the same helper function you used for the quantized tests? if so, please refactor this into some utilities.
} | ||
} | ||
|
||
vkcompute::vkapi::ScalarType from_at_scalartype(c10::ScalarType at_scalartype) { |
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.
same as above, refactor into common utilities
at::ScalarType dtype, | ||
at::ScalarType out_dtype) { | ||
auto out = at::empty_like(input, out_dtype); | ||
// Convert at::ScalarType to executorch::ScalarType |
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.
you use this conversion here two times, and also in the quantized tests, please refactor into a utility function
Skeleton framework that is needed to build out the dequantize_per_tensor and dequantize_per_token operators based on cpu implementation Differential Revision: [D76267021](https://our.internmc.facebook.com/intern/diff/D76267021/) [ghstack-poisoned]
This pull request was exported from Phabricator. Differential Revision: D76267021 |
Skeleton framework that is needed to build out the dequantize_per_tensor and dequantize_per_token operators based on cpu implementation Differential Revision: [D76267021](https://our.internmc.facebook.com/intern/diff/D76267021/) [ghstack-poisoned]
This pull request was exported from Phabricator. Differential Revision: D76267021 |
Skeleton framework that is needed to build out the dequantize_per_tensor and dequantize_per_token operators based on cpu implementation Differential Revision: [D76267021](https://our.internmc.facebook.com/intern/diff/D76267021/) [ghstack-poisoned]
This pull request was exported from Phabricator. Differential Revision: D76267021 |
Skeleton framework that is needed to build out the dequantize_per_tensor and dequantize_per_token operators based on cpu implementation Differential Revision: [D76267021](https://our.internmc.facebook.com/intern/diff/D76267021/) [ghstack-poisoned]
This pull request was exported from Phabricator. Differential Revision: D76267021 |
Skeleton framework that is needed to build out the dequantize_per_tensor and dequantize_per_token operators based on cpu implementation Differential Revision: [D76267021](https://our.internmc.facebook.com/intern/diff/D76267021/) [ghstack-poisoned]
This pull request was exported from Phabricator. Differential Revision: D76267021 |
Skeleton framework that is needed to build out the dequantize_per_tensor and dequantize_per_token operators based on cpu implementation Differential Revision: [D76267021](https://our.internmc.facebook.com/intern/diff/D76267021/) [ghstack-poisoned]
This pull request was exported from Phabricator. Differential Revision: D76267021 |
Skeleton framework that is needed to build out the dequantize_per_tensor and dequantize_per_token operators based on cpu implementation Differential Revision: [D76267021](https://our.internmc.facebook.com/intern/diff/D76267021/) [ghstack-poisoned]
This pull request was exported from Phabricator. Differential Revision: D76267021 |
Skeleton framework that is needed to build out the dequantize_per_tensor and dequantize_per_token operators based on cpu implementation Differential Revision: [D76267021](https://our.internmc.facebook.com/intern/diff/D76267021/) [ghstack-poisoned]
This pull request was exported from Phabricator. Differential Revision: D76267021 |
Skeleton framework that is needed to build out the dequantize_per_tensor and dequantize_per_token operators based on cpu implementation Differential Revision: [D76267021](https://our.internmc.facebook.com/intern/diff/D76267021/) [ghstack-poisoned]
This pull request was exported from Phabricator. Differential Revision: D76267021 |
Skeleton framework that is needed to build out the dequantize_per_tensor and dequantize_per_token operators based on cpu implementation Differential Revision: [D76267021](https://our.internmc.facebook.com/intern/diff/D76267021/) [ghstack-poisoned]
This pull request was exported from Phabricator. Differential Revision: D76267021 |
763269a
into
gh/ahmtox/13/base
Stack from ghstack (oldest at bottom):
Skeleton framework that is needed to build out the dequantize_per_tensor and dequantize_per_token operators based on cpu implementation
Differential Revision: D76267021