Lines Matching refs:transpose
28 transposes that cancel out: `transpose(transpose(X)) -> X`. Here is the
33 return transpose(transpose(x));
41 %0 = toy.transpose(%arg0 : tensor<*xf64>) to tensor<*xf64>
42 %1 = toy.transpose(%0 : tensor<*xf64>) to tensor<*xf64>
50 transpose is expressed with these loops:
78 /// Fold transpose(transpose(x)) -> x
80 /// We register this pattern to match every toy.transpose in the IR.
92 // Look through the input of the current transpose.
96 // Input defined by another transpose? If not, no match.
100 // Otherwise, we have a redundant transpose. Use the rewriter.
136 %0 = toy.transpose(%arg0 : tensor<*xf64>) to tensor<*xf64>
142 transpose operation. However, one of the transposes still hasn't been
144 last transform with the function input and left behind the now dead transpose
150 def TransposeOp : Toy_Op<"transpose", [NoSideEffect]> {...}
161 Perfect! No `transpose` operation is left - the code is optimal.