[Mlir-commits] [mlir] 5609429 - Fix type in documentation

Javed Absar llvmlistbot at llvm.org
Thu Jul 21 10:42:44 PDT 2022


Author: Javed Absar
Date: 2022-07-21T18:42:31+01:00
New Revision: 56094296f5de9227e76205126be90ff1bffd9705

URL: https://github.com/llvm/llvm-project/commit/56094296f5de9227e76205126be90ff1bffd9705
DIFF: https://github.com/llvm/llvm-project/commit/56094296f5de9227e76205126be90ff1bffd9705.diff

LOG: Fix type in documentation

Reviewed By: bondhugula

Differential Revision: https://reviews.llvm.org/D130274

Added: 
    

Modified: 
    mlir/include/mlir/Dialect/Tensor/IR/TensorOps.td

Removed: 
    


################################################################################
diff  --git a/mlir/include/mlir/Dialect/Tensor/IR/TensorOps.td b/mlir/include/mlir/Dialect/Tensor/IR/TensorOps.td
index 7813f887a6ae6..e3f953f8c528c 100644
--- a/mlir/include/mlir/Dialect/Tensor/IR/TensorOps.td
+++ b/mlir/include/mlir/Dialect/Tensor/IR/TensorOps.td
@@ -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
@@ -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>
     ```
   }];
 


        


More information about the Mlir-commits mailing list