[ET-VK][Ops] quantize ops skeleton test framework#11366
Conversation
Skeleton framework that is needed to build out the quantize_per_tensor and quantize_per_token operators based on cpu implementation Differential Revision: [D75959066](https://our.internmc.facebook.com/intern/diff/D75959066/) [ghstack-poisoned]
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/executorch/11366
Note: Links to docs will display an error until the docs builds have been completed. ❌ 3 New FailuresAs of commit e5894a9 with merge base 8cfa858 ( NEW FAILURES - The following jobs have failed:
This comment was automatically generated by Dr. CI and updates every 15 minutes. |
|
This pull request was exported from Phabricator. Differential Revision: D75959066 |
Skeleton framework that is needed to build out the quantize_per_tensor and quantize_per_token operators based on cpu implementation Differential Revision: [D75959066](https://our.internmc.facebook.com/intern/diff/D75959066/) [ghstack-poisoned]
|
This pull request was exported from Phabricator. Differential Revision: D75959066 |
Skeleton framework that is needed to build out the quantize_per_tensor and quantize_per_token operators based on cpu implementation Differential Revision: [D75959066](https://our.internmc.facebook.com/intern/diff/D75959066/) [ghstack-poisoned]
|
This pull request was exported from Phabricator. Differential Revision: D75959066 |
Skeleton framework that is needed to build out the quantize_per_tensor and quantize_per_token operators based on cpu implementation Differential Revision: [D75959066](https://our.internmc.facebook.com/intern/diff/D75959066/) [ghstack-poisoned]
|
This pull request was exported from Phabricator. Differential Revision: D75959066 |
| int64_t quant_max, | ||
| at::ScalarType dtype) { | ||
| auto out = at::empty_like(input, dtype); | ||
| // Convert at::ScalarType to executorch::ScalarType |
| // | ||
|
|
||
| // Helper function to get the name of a ScalarType for better error messages | ||
| std::string scalar_type_name(c10::ScalarType dtype) { |
| } | ||
| } | ||
|
|
||
| vkcompute::vkapi::ScalarType from_at_scalartype(c10::ScalarType at_scalartype) { |
Skeleton framework that is needed to build out the quantize_per_tensor and quantize_per_token operators based on cpu implementation Differential Revision: [D75959066](https://our.internmc.facebook.com/intern/diff/D75959066/) [ghstack-poisoned]
|
This pull request was exported from Phabricator. Differential Revision: D75959066 |
Skeleton framework that is needed to build out the quantize_per_tensor and quantize_per_token operators based on cpu implementation Differential Revision: [D75959066](https://our.internmc.facebook.com/intern/diff/D75959066/) [ghstack-poisoned]
|
This pull request was exported from Phabricator. Differential Revision: D75959066 |
Skeleton framework that is needed to build out the quantize_per_tensor and quantize_per_token operators based on cpu implementation Differential Revision: [D75959066](https://our.internmc.facebook.com/intern/diff/D75959066/) [ghstack-poisoned]
|
This pull request was exported from Phabricator. Differential Revision: D75959066 |
Skeleton framework that is needed to build out the quantize_per_tensor and quantize_per_token operators based on cpu implementation Differential Revision: [D75959066](https://our.internmc.facebook.com/intern/diff/D75959066/) [ghstack-poisoned]
|
This pull request was exported from Phabricator. Differential Revision: D75959066 |
Skeleton framework that is needed to build out the quantize_per_tensor and quantize_per_token operators based on cpu implementation Differential Revision: [D75959066](https://our.internmc.facebook.com/intern/diff/D75959066/) [ghstack-poisoned]
|
This pull request was exported from Phabricator. Differential Revision: D75959066 |
Skeleton framework that is needed to build out the quantize_per_tensor and quantize_per_token operators based on cpu implementation Differential Revision: [D75959066](https://our.internmc.facebook.com/intern/diff/D75959066/) [ghstack-poisoned]
|
This pull request was exported from Phabricator. Differential Revision: D75959066 |
Skeleton framework that is needed to build out the quantize_per_tensor and quantize_per_token operators based on cpu implementation Differential Revision: [D75959066](https://our.internmc.facebook.com/intern/diff/D75959066/) [ghstack-poisoned]
|
This pull request was exported from Phabricator. Differential Revision: D75959066 |
Skeleton framework that is needed to build out the quantize_per_tensor and quantize_per_token operators based on cpu implementation Differential Revision: [D75959066](https://our.internmc.facebook.com/intern/diff/D75959066/) [ghstack-poisoned]
|
This pull request was exported from Phabricator. Differential Revision: D75959066 |
Skeleton framework that is needed to build out the quantize_per_tensor and quantize_per_token operators based on cpu implementation Differential Revision: [D75959066](https://our.internmc.facebook.com/intern/diff/D75959066/) [ghstack-poisoned]
|
This pull request was exported from Phabricator. Differential Revision: D75959066 |
Skeleton framework that is needed to build out the quantize_per_tensor and quantize_per_token operators based on cpu implementation Differential Revision: [D75959066](https://our.internmc.facebook.com/intern/diff/D75959066/) [ghstack-poisoned]
|
This pull request was exported from Phabricator. Differential Revision: D75959066 |
Stack from ghstack (oldest at bottom):
Skeleton framework that is needed to build out the quantize_per_tensor and quantize_per_token operators based on cpu implementation
Differential Revision: D75959066