Skip to content

Commit 61f4e2e

Browse files
committed
improve example doc
1 parent 570b023 commit 61f4e2e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

mlir/include/mlir/Dialect/Vector/IR/VectorOps.td

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2259,7 +2259,9 @@ def Vector_ShapeCastOp :
22592259

22602260
```mlir
22612261
%1 = vector.shape_cast %0 : vector<4x3xf32> to vector<3x2x2xf32>
2262-
%2 = vector.shape_cast %0 : vector<[2]x3x[4]xi8> to vector<3x[1]x[8]xi8>
2262+
2263+
// with 2 scalable dimensions (number of which must be preserved).
2264+
%3 = vector.shape_cast %2 : vector<[2]x3x[4]xi8> to vector<3x[1]x[8]xi8>
22632265
```
22642266
}];
22652267
let extraClassDeclaration = [{

0 commit comments

Comments
 (0)