-
Notifications
You must be signed in to change notification settings - Fork 169
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Summary: Refactor QAT into its own module so future QAT features can live under the same folder without making qat.py longer, and a separate QAT README can be added in the future. Test Plan: python test/quantization/test_qat.py
- Loading branch information
1 parent
ec317fc
commit f470f49
Showing
4 changed files
with
185 additions
and
158 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
from .api import ( | ||
disable_4w_fake_quant, | ||
disable_8da4w_fake_quant, | ||
enable_4w_fake_quant, | ||
enable_8da4w_fake_quant, | ||
Int4WeightOnlyQATQuantizer, | ||
Int8DynActInt4WeightQATQuantizer, | ||
) | ||
|
||
__all__ = [ | ||
"disable_4w_fake_quant", | ||
"disable_8da4w_fake_quant", | ||
"enable_4w_fake_quant", | ||
"enable_8da4w_fake_quant", | ||
"Int4WeightOnlyQATQuantizer", | ||
"Int8DynActInt4WeightQATQuantizer", | ||
] |
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.