The fusion for tensor_reshape is embedding the information to indexing maps,
thus the exising pattenr also works for indexed_generic ops.
Depends On D80347
Paths
| Differential D80348
[mlir][Linalg] Add support for fusion between indexed_generic ops and tensor_reshape ops ClosedPublic Authored by hanchung on May 20 2020, 5:48 PM.
Details Summary The fusion for tensor_reshape is embedding the information to indexing maps, Depends On D80347
Diff Detail
Event TimelineComment Actions Good to know that this minimal change works as expected (I hoped it would). Thanks for adding tests. This revision now requires changes to proceed.May 23 2020, 12:05 PM Comment Actions
This is a bit tricky, we still need the change to deduce the type of the op to create (whether this is GenericOp or IndexedGenericOp). Comment Actions
I agree. This is more evidence for me that the indexed-generic and generic should really become op-interfaces after the named ops are replaced with generated ops in Linalg. @nicolasvasilache what do you think. I can start a discussion on discourse if thats a better forum. This revision is now accepted and ready to land.May 27 2020, 10:14 AM Closed by commit rG27fca57546c2: [mlir][Linalg] Add support for fusion between indexed_generic ops and… (authored by hanchung). · Explain WhyJun 3 2020, 3:29 PM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 267728 mlir/lib/Dialect/Linalg/Transforms/Fusion.cpp
mlir/test/Dialect/Linalg/fusion-tensor.mlir
|