Skip to content

Commit 2bcf62b

Browse files
authored
[nfc][mlir][linalg][tiling] Fix example code. (#127194)
1 parent d3d2ea6 commit 2bcf62b

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

Diff for: mlir/include/mlir/Dialect/Linalg/Transforms/Transforms.h

+5-4
Original file line numberDiff line numberDiff line change
@@ -1005,10 +1005,11 @@ void transformIndexOps(RewriterBase &b, LinalgOp op,
10051005
/// To:
10061006
/// ```
10071007
/// %cst = arith.constant 0.000000e+00 : f32
1008-
/// %0 = tensor.expand_shape %in [[0, 1]] : tensor<32xf32> into
1009-
/// tensor<4x8xf32> %1 = tensor.empty [4] : tensor<4xf32> %2 = linalg.fill
1010-
/// ins(%cst : f32) outs(%1 : tensor<4xf32>) -> tensor<4xf32> %3 =
1011-
/// linalg.generic {indexing_maps = [affine_map<(d0, d1) -> (d0, d1)>,
1008+
/// %0 = tensor.expand_shape %in [[0, 1]]: tensor<32xf32> into tensor<4x8xf32>
1009+
/// %1 = tensor.empty [4] : tensor<4xf32>
1010+
/// %2 = linalg.fill ins(%cst : f32)
1011+
/// outs(%1 : tensor<4xf32>) -> tensor<4xf32>
1012+
/// %3 = linalg.generic {indexing_maps = [affine_map<(d0, d1) -> (d0, d1)>,
10121013
/// affine_map<(d0, d1) -> (d0)>],
10131014
/// iterator_types = ["parallel", "reduction"]}
10141015
/// ins(%0 : tensor<4x8xf32>) outs(%2 : tensor<4xf32>) {

0 commit comments

Comments
 (0)