tree: 57222c9069cd286e1c90bd2ccf1d744a9e416adf [path history] [tgz]
  1. backends/
  2. infra/
  3. tests/
  4. utils/
  5. __init__.py
  6. graph_drawer.py
  7. graph_manipulation.py
  8. net_min_base.py
  9. operator_support.py
  10. param_fetch.py
  11. pass_manager.py
  12. README.md
  13. shape_prop.py
  14. split_module.py
  15. split_utils.py
  16. splitter_base.py
  17. tools_common.py
torch/fx/passes/README.md

FX Pass Infrastructure

This folder contains the pass infarstructure 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_utis.py - utility functions for fusing list of nodes into a single node
  • dialect - dialect specific passes
    • common - common passes that can be shared by all dialects
    • aten - aten dialect specific passes
    • prims - prim dialect specific passes
  • backends - Backend specific passes
  • conversion - Conversion passes between dialects