pytorch/torch/fx/passes
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
..
backends
dialect
infra [BE]: Enable ruff SLOT checks (#146276) 2025-02-04 19:18:23 +00:00
tests
utils
__init__.py
_tensorify_python_scalars.py
annotate_getitem_nodes.py
fake_tensor_prop.py
graph_drawer.py
graph_manipulation.py
graph_transform_observer.py
net_min_base.py
operator_support.py
param_fetch.py
pass_manager.py
README.md
reinplace.py
runtime_assert.py
shape_prop.py [BE][Ez]: ISC001 Auto concatenate implicit one line strings (#146408) 2025-02-04 19:07:04 +00:00
split_module.py
split_utils.py
splitter_base.py
tools_common.py

FX Pass Infrastructure

This folder contains the pass infrastructure and passes for transforming fx.Graph.

Code Structure