We prevent merging a sparse-in/dense-out with dense-in
kernels because the result is usuall not sparsifiable.
Dense kernels and sparse kernels are still fused, obviously.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Paths
| Differential D153077
[mlir][sparse] enhance element-wise fusion heuristics ClosedPublic Authored by aartbik on Jun 15 2023, 2:14 PM.
Details Summary We prevent merging a sparse-in/dense-out with dense-in
Diff Detail
Event TimelineThis revision is now accepted and ready to land.Jun 15 2023, 4:11 PM Closed by commit rG5c03c056e00e: [mlir][sparse] enhance element-wise fusion heuristics (authored by aartbik). · Explain WhyJun 15 2023, 4:48 PM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 531947 mlir/include/mlir/Dialect/SparseTensor/IR/SparseTensor.h
mlir/lib/Dialect/Linalg/Transforms/ElementwiseOpFusion.cpp
mlir/test/Dialect/SparseTensor/sparse_fusion.mlir
|