Skip to content

Commit

Permalink
Fix type in documentation
Browse files Browse the repository at this point in the history
Reviewed By: bondhugula

Differential Revision: https://reviews.llvm.org/D130274
  • Loading branch information
javedabsar1 committed Jul 21, 2022
1 parent 0ae4669 commit 5609429
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mlir/include/mlir/Dialect/Tensor/IR/TensorOps.td
Expand Up @@ -1220,7 +1220,7 @@ def Tensor_SplatOp : Tensor_Op<"splat", [

```mlir
%s = arith.constant 10.1 : f32
%t = tensor.splat %s : tensor<8x16xi32>
%t = tensor.splat %s : tensor<8x16xf32>
```

TODO: This operation is easy to extend to broadcast to dynamically shaped
Expand All @@ -1231,7 +1231,7 @@ def Tensor_SplatOp : Tensor_Op<"splat", [
// to the sizes of the two dynamic dimensions.
%m = "foo"() : () -> (index)
%n = "bar"() : () -> (index)
%t = tensor.splat %s [%m, %n] : tensor<?x?xi32>
%t = tensor.splat %s [%m, %n] : tensor<?x?xf32>
```
}];

Expand Down

0 comments on commit 5609429

Please sign in to comment.