Skip to content

Latest commit

 

History

History

passes

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_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