-
Notifications
You must be signed in to change notification settings - Fork 3.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Introduce QuantizerTemplateScaling for SQ (#3870)
Summary: replace ``` C++ template <class Codec, bool uniform, int SIMD> struct QuantizerTemplate {}; ``` with ``` C++ enum class QuantizerTemplateScaling { UNIFORM = 0, NON_UNIFORM = 1 }; template <class Codec, QuantizerTemplateScaling SCALING, int SIMD> struct QuantizerTemplate {}; ``` This allows adding more Scalar Quantizer scaling types (such as rowwise or rowwise + non-uniform) in the future. Pull Request resolved: #3870 Reviewed By: mengdilin Differential Revision: D63033311 Pulled By: mnorris11 fbshipit-source-id: f62b3dcdf446251229a863fdd9aa5e00d9b02c07
- Loading branch information
1 parent
317bd00
commit 4e30901
Showing
1 changed file
with
91 additions
and
33 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