You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add a pass to remove certain redundant branched quant/dequant nodes
Summary:
This pass addresses situations like this, where the `quantize` and `dequantize` nodes have the same parameters:
```
some_op0
|
quantize
/ \
some_op1 dequantize
|
some_op2
```
. We can eliminate `dequantize` like so:
```
some_op0
/ \
quantize some_op2
/
some_op1
```
The same logic is applied when the order of `quantize` and `dequantized` is reversed.
Situations where the `some_op1` branch doesn't exist are handled by `FuseQuantDequantToRequantizePass`, but branched scenarios require different logic.
Differential Revision: D69947096
0 commit comments