-
Notifications
You must be signed in to change notification settings - Fork 110
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix quant type handling in stablehlo-legalize-quant-to-int pass (#2385)
Originally brought up at #2383 (comment) The `stablehlo-legalize-quant-to-int` pass propagated from mho (#2383 ) uses std::variant to handle per-tensor and per-axis quantized type. However, the base class quant::QuantizedType provides a better polymorphic way to accomplish the same. ## Direction to reviewers Please review the change only in the following commit: ee8b499 Reason: This PR is based on #2383 which is not merged yet and hence has many files which are already reviewed as part of #2383.
- Loading branch information
Showing
2 changed files
with
112 additions
and
161 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.