-
Notifications
You must be signed in to change notification settings - Fork 661
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Flow] Avoid fusion of dequantization-like ops with producers (#16610)
Dequantization-like operations (e.g. arith.extf/extui/extsi) are generally best to aggressively fuse with consumers because this minimizes the amount of memory on the boundaries of dispatches. This patch changes the heuristics in FusionOfTensorOps to avoid fusion of a dequant-like consumer with its producer. Additionally it disables multi-use fusion of a multi-use dequant-like producer for the same reason, namely we would rather fuse by cloning the dequant-like op instead of typical multi-use fusion.
- Loading branch information
Showing
2 changed files
with
128 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters