ConcatQuantFusionPass
Description
Fuses the ConcatD/ConcatV2D+Quant subgraph into the Quant+ConcatD/ConcatV2D subgraph. The fusion patterns can reduce the amount of data to be moved and improve computing performance.
Before:
After: 
Or
Before:
After: 
Or
Before:
After: 
Restrictions
- In the first figure, the parameters of Quant0 and Quant1 must be the same.
- During data comparison, the corresponding fusion pattern needs to be disabled.
- This fusion pattern is not supported when the data type of the current Quant output is int4.
- The output node of Concat does not support the stridedwrite operator.
- If Fixpipe is supported, ReLU can be Leaky ReLU, PReLU, ReLU6, or ReLU.
- The fused axis is the C axis when the input format of Concat is NCHW and concat_dim_ is 1 or -3, or when the input format of Concat is NHWC and concat_dim_ is 3 or -1. In this case, the value of the C axis must be an integer multiple of K0. The shape value must meet the following conditions:
Parent topic: Graph Fusion Patterns