TbeReduceElemwiseFusionPass
Description
Performs UB fusion on the following pattern subgraph in the static shape scenario.
Mode 1:

Mode 2:

Restrictions
The constraints of mode 1 are as follows:
- Only static scenarios are supported.
- Elemwise1 is required and its quantity is 1.
- CommReduce is required and its quantity is 1.
- Elemwise2 and Elemwise3 are not required, and the maximum number of Elemwise2 and Elemwise3 is 5.
- Elemwise2 and Elemwise3 cannot be multi-input nodes.
The constraints of mode 2 are as follows:
- Only static scenarios are supported.
- CommReduce is required and its quantity is 1.
- The number of Elemwise4 ranges from 1 to 5.
- Elemwise4 cannot be a multi-input node.
Parent topic: SpaceToBatchConv2dBatchToSpacePass