pytorch/torch/fx/passes
Zhou, Lingzhi 4a12777ffe [Partitioner] Remove unnecessary upstream nodes in dependency viewer (#146580)
We iterate upstream nodes to update partition map. But actually did nothing due to we iterate nodes with reversed topological order https://github.com/pytorch/pytorch/pull/136608/files#diff-f2f9dd3903fd99955732eb694941fea0cb7301a58d59554787f3311d417e5615L193 so that there exists no upstream nodes in assignment. Remove it to reduce for-loop overhead which up to O(N * N) complexity.

Pull Request resolved: https://github.com/pytorch/pytorch/pull/146580
Approved by: https://github.com/Skylion007, https://github.com/jerome-habana
2025-03-13 01:42:10 +00:00
..
backends
dialect PEP585 update - torch/fx (#145166) 2025-01-20 18:11:54 +00:00
infra [Partitioner] Remove unnecessary upstream nodes in dependency viewer (#146580) 2025-03-13 01:42:10 +00:00
tests
utils PEP585 update - torch/fx (#145166) 2025-01-20 18:11:54 +00:00
__init__.py
_tensorify_python_scalars.py PEP585 update - torch/fx (#145166) 2025-01-20 18:11:54 +00:00
annotate_getitem_nodes.py [4/N] Apply py39 ruff and pyupgrade fixes (#143257) 2025-01-04 10:47:51 +00:00
fake_tensor_prop.py
graph_drawer.py Enable ruff rule S324 (#147665) 2025-02-25 18:27:34 +00:00
graph_manipulation.py PEP585 update - torch/fx (#145166) 2025-01-20 18:11:54 +00:00
graph_transform_observer.py PEP585 update - torch/fx (#145166) 2025-01-20 18:11:54 +00:00
net_min_base.py [Minimizer] allow overriding of ShapeProp logic by subclasses of _MinimizerBase (#148784) 2025-03-10 22:22:16 +00:00
operator_support.py PEP585 update - torch/fx (#145166) 2025-01-20 18:11:54 +00:00
param_fetch.py PEP585 update - torch/fx (#145166) 2025-01-20 18:11:54 +00:00
pass_manager.py PEP585 update - torch/fx (#145166) 2025-01-20 18:11:54 +00:00
README.md
reinplace.py PEP585 update - torch/fx (#145166) 2025-01-20 18:11:54 +00:00
runtime_assert.py PEP585 update - torch/fx (#145166) 2025-01-20 18:11:54 +00:00
shape_prop.py [BE][Ez]: ISC001 Auto concatenate implicit one line strings (#146408) 2025-02-04 19:07:04 +00:00
split_module.py PEP585 update - torch/fx (#145166) 2025-01-20 18:11:54 +00:00
split_utils.py [Minimizer] allow overriding of ShapeProp logic by subclasses of _MinimizerBase (#148784) 2025-03-10 22:22:16 +00:00
splitter_base.py PEP585 update - torch/fx (#145166) 2025-01-20 18:11:54 +00:00
tools_common.py PEP585 update - torch/fx (#145166) 2025-01-20 18:11:54 +00:00

FX Pass Infrastructure

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

Code Structure