Expand description
Kernel fusion: merges adjacent classified patterns into fused operations.
After pattern classification, fuse_patterns() scans adjacent patterns
and merges compatible sequences (e.g., Conv+BatchNorm, Add+ReLU).
Enums§
- Fused
Activation - Fused activation function appended to a base operation.
- Fused
Pattern - A pattern that may be fused from one or more classified patterns.
Functions§
- fuse_
patterns - Greedy adjacent fusion of classified kernel patterns.
- input_
tensor_ names - Returns the input tensor names of a pattern.
- output_
tensor_ names - Returns the output tensor names of a pattern.
- tensors_
connect - Returns
trueif any output tensor name ofproducermatches any input tensor name ofconsumer, indicating data flows between them.