@@ -561,7 +561,7 @@ def BroadcastOp : LinalgStructuredBase_Op<"broadcast", [
561561def MatmulOp : LinalgStructuredBase_Op<"matmul", [
562562 AttrSizedOperandSegments,
563563 LinalgContractionOpInterface]> {
564-
564+
565565 let summary = [{
566566 Performs a matrix multiplication of two 2D inputs without broadcast or transpose.
567567 }];
@@ -593,17 +593,16 @@ def MatmulOp : LinalgStructuredBase_Op<"matmul", [
593593 ]
594594 ins(%arg0, %arg1 : memref<3xf32>, memref<5x7xf32>)
595595 outs(%arg2: memref<3x7xf32>)
596- ```
596+ ```
597597
598- Example Broadcast and transpose:
599- ```
600- linalg.matmul indexing_maps = [
601- affine_map<(d0, d1, d2) -> (d2, d0)>, // transpose
602- affine_map<(d0, d1, d2) -> (d2)>, // broadcast
603- affine_map<(d0, d1, d2) -> (d0, d1)>
604- ]
605- ins(%arg0, %arg1 : memref<5x3xf32>, memref<7xf32>) outs(%arg2: memref<3x7xf32>)
606- ```
598+ Example Broadcast and transpose:
599+ ```
600+ linalg.matmul indexing_maps = [
601+ affine_map<(d0, d1, d2) -> (d2, d0)>, // transpose
602+ affine_map<(d0, d1, d2) -> (d2)>, // broadcast
603+ affine_map<(d0, d1, d2) -> (d0, d1)>
604+ ]
605+ ins(%arg0, %arg1 : memref<5x3xf32>, memref<7xf32>) outs(%arg2: memref<3x7xf32>)
607606 }];
608607
609608 let arguments = (ins
0 commit comments