Commit 2bd94bb
committed
Update on "Remove unified.py (Quantizer and TwoStepQuantizer ABCs)"
Summary:
Delete `torchao/quantization/unified.py` which defined the `Quantizer`
and `TwoStepQuantizer` abstract base classes. These were trivial ABCs
that only declared method signatures (`quantize`, `prepare`, `convert`)
which all subclasses already implement. Remove the base class
inheritance from all subclasses and clean up imports.
Test Plan:
pytest test/quantization/test_qat.py -x
pytest test/quantization/test_quant_api.py -x
[ghstack-poisoned]1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
| 40 | + | |
40 | 41 | | |
41 | 42 | | |
42 | 43 | | |
| |||
63 | 64 | | |
64 | 65 | | |
65 | 66 | | |
66 | | - | |
67 | 67 | | |
68 | 68 | | |
69 | 69 | | |
| |||
0 commit comments