Fusion Pass Examples
This directory provides examples for implementing custom fusion passes by inheriting GE-provided classes and overriding their methods:
| Example | Example Link |
|---|---|
| MatMul+Add fused to GEMM custom pass example | README |
MatMul+Add fused to GEMM custom pass example (Python version, demonstrating @pattern expression syntax) |
README |
| capture tensor feature usage | README |
| capture tensor feature usage (Python version) | README |
| PatternMatcherConfig feature usage | README |
PatternMatcherConfig feature usage (Python version, demonstrating @pattern expression syntax) |
README |
| Custom pass example for deleting add zero operation | README |
Custom pass example for deleting add zero operation (Python version, demonstrating @pattern expression syntax) |
README |
| Custom pass example for custom operators | README |
Custom pass example for custom operators (Python version, demonstrating @pattern expression syntax) |
README |
| Custom pass example for splitting grouped convolution | README |
| Custom pass example for splitting grouped convolution (Python version) | README |
| Custom pass example for flattening BatchMatMul to MatMul | README |
| Custom pass example for BmmTile fusion (removing redundant Tile) | README |
| Custom pass example for BatchMatMulV2 to Mul+ReduceSumD | README |
Development Guide
Recommended to first read mechanism description, then choose language guide: