Arm backend: Remove legacy quantizer - #22838
Sebastian-Larsson wants to merge 3 commits into
Conversation
Remove _TOSAQuantizerV1 and its supporting helpers, deprecated in ExecuTorch 1.4. Use the composable quantizer for all Arm targets. Retain use_composable_quantizer for API compatibility and reject False with a removal message. Update the tests and documentation for the composable implementation. Change-Id: I1233ac75ae7371e55757cb2676e2d538225fac51 Signed-off-by: Sebastian Larsson <sebastian.larsson@arm.com>
Move quantization-spec helpers into quantization_config, operator sets into quantizer_support, and scalar checks into the Cortex-M pattern matcher. Delete quantization_annotator and its build dependencies. Change-Id: I5b2db2955f8630ab6c53ab29cca19e44ab8e0220 Signed-off-by: Sebastian Larsson <sebastian.larsson@arm.com>
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/executorch/22838
Note: Links to docs will display an error until the docs builds have been completed. ❌ 1 New Failure, 4 Unrelated FailuresAs of commit 1e361be with merge base 026ca3f ( NEW FAILURE - The following job has failed:
BROKEN TRUNK - The following jobs failed but were present on the merge base:👉 Rebase onto the `viable/strict` branch to avoid these failures
This comment was automatically generated by Dr. CI and updates every 15 minutes. |
|
We still have some internal usage of the legacy quantizer, I'll look into the what it will take to finish that migration. |
| "This API is experimental and may change without notice. " | ||
| "It is only available when use_composable_quantizer=True." | ||
| ) | ||
| @experimental("This API is experimental and may change without notice.") |
There was a problem hiding this comment.
If we're removing the legacy quantizer, can we remove the experimental tag on the new one? Is there any remaining work to mark this as stable?
There was a problem hiding this comment.
I agree, I have no remaining work from my side and I have not seen much issues with it recently.
There was a problem hiding this comment.
Thanks @AdrianLundell
@rascani I will wait for furher feedback from you in case I need to change anything else.
Remove legacy quantizer and remove quantization_annotator.py file. Helper functions inside it that remained are moved closer to their usage (same file).
cc @digantdesai @freddan80 @per @zingo @oscarandersson8218 @mansnils @robell @rascani