PiperOrigin-RevId: 274905193
This commit is contained in:
MLIR Team
2019-10-15 15:44:56 -07:00
committed by A. Unique TensorFlower
parent c0b11f5cf4
commit 2fc29f1eab

View File

@@ -74,7 +74,7 @@ the IR and replacing it with a different set of operations, we can plug into the
MLIR `Canonicalizer` pass by implementing a `RewritePattern`:
```c++
/// Fold transpose(transpose(x)) -> transpose(x)
/// Fold transpose(transpose(x)) -> x
struct SimplifyRedundantTranspose : public mlir::OpRewritePattern<TransposeOp> {
/// We register this pattern to match every toy.transpose in the IR.
/// The "benefit" is used by the framework to order the patterns and process