Repository navigation
[Flow] Loosen restrictions for dequantization fusion - #15663
Conversation
|
This is based on #15662, and can wait until the PR has landed. |
| return newRegionOp; | ||
| } | ||
|
|
||
| bool Flow::isDequantizationLikeOp(Operation *op) { |
There was a problem hiding this comment.
This is the basic change from this PR. The previous dequantization matching has been replaced with this matcher.
There was a problem hiding this comment.
This is not a trivial function, can you add a doc to it?
There was a problem hiding this comment.
I have some comments in RegionOpUtils.h. Should I add something here as well?
There was a problem hiding this comment.
oops, I missed that part. We don't need the comment in .cpp, thank you!
caed12b to
241661e
Compare
|
Should we fix the first sub-task in #15826 (comment) first? So we can make sure that SetEncoding is not set on truncation ops? |
Yep, I can do that first! I just wanted to rebase this, since it was already written (although I still need to add tests). I'll fix SetEncoding and then I'll add tests here. |
Abbreviated Benchmark Summary@ commit 03a1e72c4445e6aa683db3b5b59d06309805b741 (vs. base 4e9199b1507a20999beaf2c91738047c79dccb3d) Data-Tiling Comparison TableClick to show
Regressed Latencies 🚩
Improved Latencies 🎉
[Top 3 out of 7 results showed] No improved or regressed compilation metrics 🏖️ For more information: |
d527095 to
08e646b
Compare
08e646b to
dbf4cc8
Compare
The conditions for cloning dequantization ops into a dispatch region are too conservative, and miss fusions of some dequantization-like ops. This loosens the restrictions for cloning dequantization-like ops into dispatch regions.
dbf4cc8 to
5ee412a
Compare
The conditions for cloning dequantization ops into a dispatch
region are too conservative, and miss fusions of some
dequantization-like ops. This loosens the restrictions for
cloning dequantization-like ops into dispatch regions.
Closes #15826