pytorch/torch/ao/quantization
Aaron Gokaslan 7f65a20884 [BE]: Enable ruff SLOT checks (#146276)
This enables a check that which a class which only inherits from immutable classes like str, tuple, and NamedTuple, also defined `__slots__` so they don't allocate memory unnecessarily. This also ensure contributors think about how they define their classes with subclass NamedTuples and str, of which we have many in our codebase

Pull Request resolved: https://github.com/pytorch/pytorch/pull/146276
Approved by: https://github.com/aorenste
2025-02-04 19:18:23 +00:00
..
backend_config PEP585 update - torch/ao/quantization (#145140) 2025-01-19 10:20:00 +00:00
experimental PEP585 update - torch/ao/quantization (#145140) 2025-01-19 10:20:00 +00:00
fx [BE]: Enable ruff SLOT checks (#146276) 2025-02-04 19:18:23 +00:00
pt2e Resolve affine quantization namespace collision with torchao (#145941) 2025-01-31 21:29:47 +00:00
quantizer [WIP] Move XNNPACKQuantizer from PyTorch to ExecuTorch (#144940) 2025-01-24 10:06:07 +00:00
__init__.py PEP585 update - torch/ao/quantization (#145140) 2025-01-19 10:20:00 +00:00
_correct_bias.py
_equalize.py PEP585 update - torch/ao/quantization (#145140) 2025-01-19 10:20:00 +00:00
_learnable_fake_quantize.py PEP585 update - torch/ao/quantization (#145140) 2025-01-19 10:20:00 +00:00
fake_quantize.py
fuse_modules.py PEP585 update - torch/ao/quantization (#145140) 2025-01-19 10:20:00 +00:00
fuser_method_mappings.py PEP585 update - torch/ao/quantization (#145140) 2025-01-19 10:20:00 +00:00
observer.py PEP585 update - torch/ao/quantization (#145140) 2025-01-19 10:20:00 +00:00
pattern.md
qconfig.py [BE]: Enable ruff SLOT checks (#146276) 2025-02-04 19:18:23 +00:00
qconfig_mapping.py PEP585 update - torch/ao/quantization (#145140) 2025-01-19 10:20:00 +00:00
quant_type.py
quantization_mappings.py PEP585 update - torch/ao/quantization (#145140) 2025-01-19 10:20:00 +00:00
quantize.py
quantize_fx.py PEP585 update - torch/ao/quantization (#145140) 2025-01-19 10:20:00 +00:00
quantize_jit.py
quantize_pt2e.py Revert "patch for block-wise quantization + pt2e (#144492)" 2025-01-17 14:27:53 +00:00
stubs.py
utils.py PEP585 update - torch/ao/quantization (#145140) 2025-01-19 10:20:00 +00:00