pytorch/torch/fx/passes
Yuanyuan Chen 030de07aff [2/N] Use 'is' in callable comparisons (#166685)
It is generally advised to use `is/is not` for comparisons against torch functions.

Pull Request resolved: https://github.com/pytorch/pytorch/pull/166685
Approved by: https://github.com/xmfan, https://github.com/mlazos
2025-10-31 08:08:07 +00:00
..
backends Use 'is' in callable comparisons (#166624) 2025-10-30 19:00:09 +00:00
dialect
infra Fix syntax for pyrefly errors (#166496) 2025-10-29 20:00:25 +00:00
tests
utils Fix syntax for pyrefly errors (#166496) 2025-10-29 20:00:25 +00:00
__init__.py [compile] Regional inductor compilation with fx.annotate (#164776) 2025-10-13 22:22:20 +00:00
_tensorify_python_scalars.py Fix syntax for pyrefly errors (#166496) 2025-10-29 20:00:25 +00:00
annotate_getitem_nodes.py
fake_tensor_prop.py Clean up unused Pyrefly suppressions (#166178) 2025-10-25 05:32:21 +00:00
graph_drawer.py Fix syntax for pyrefly errors (#166496) 2025-10-29 20:00:25 +00:00
graph_manipulation.py [BE][14/16] fix typos in torch/ (torch/fx/) (#156604) 2025-07-02 22:55:29 +00:00
graph_transform_observer.py [8/N] Apply ruff UP035 rule (#165214) 2025-10-15 03:18:57 +00:00
net_min_base.py Fix syntax for pyrefly errors (#166496) 2025-10-29 20:00:25 +00:00
operator_support.py
param_fetch.py [8/N] Apply ruff UP035 rule (#165214) 2025-10-15 03:18:57 +00:00
pass_manager.py [8/N] Apply ruff UP035 rule (#165214) 2025-10-15 03:18:57 +00:00
README.md Fix xrefs (#151888) 2025-04-25 21:27:27 +00:00
regional_inductor.py Support regional inductor with custom config (#166269) 2025-10-27 21:46:02 +00:00
reinplace.py [2/N] Use 'is' in callable comparisons (#166685) 2025-10-31 08:08:07 +00:00
runtime_assert.py [2/N] Use 'is' in callable comparisons (#166685) 2025-10-31 08:08:07 +00:00
shape_prop.py Use tuples to have a deterministic ordering. (#164851) 2025-10-08 02:12:03 +00:00
split_module.py Use 'is' in callable comparisons (#166624) 2025-10-30 19:00:09 +00:00
split_utils.py [tgif] fix getattr_recursive with ModuleList (#161204) 2025-08-25 10:08:47 +00:00
splitter_base.py [Lowering] Fix the edge case of empty subgraph split due to dataclass node (#161716) 2025-09-10 21:23:42 +00:00
tools_common.py

FX Pass Infrastructure

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

Code Structure

  • infra - Common infrastructure, such as PassManager, PassBase
  • utils - Utility classes and functions
    • common.py - common utility functions
    • fuser_utils.py - utility functions for fusing list of nodes into a single node
  • dialect - dialect specific passes
  • backends - Backend specific passes
  • conversion - Conversion passes between dialects