pytorch/torch/ao
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
..
nn PEP585 update - torch/ao (#145199) 2025-01-20 22:32:35 +00:00
ns PEP585 update - torch/ao (#145199) 2025-01-20 22:32:35 +00:00
pruning Revert "Fix type annotation of Linear.bias (#142326)" 2025-01-26 03:41:00 +00:00
quantization [BE]: Enable ruff SLOT checks (#146276) 2025-02-04 19:18:23 +00:00
__init__.py [BE][Easy] improve submodule discovery for torch.ao type annotations (#144680) 2025-01-13 17:16:19 +00:00