[Mlir-commits] [mlir] 45aba51 - [mlir][tosa] Align AddOp examples to spec (#135266)

llvmlistbot at llvm.org llvmlistbot at llvm.org
Mon Apr 14 09:27:49 PDT 2025


Author: Jerry-Ge
Date: 2025-04-14T09:27:46-07:00
New Revision: 45aba5149b94412da01eef482e8b815a9889779b

URL: https://github.com/llvm/llvm-project/commit/45aba5149b94412da01eef482e8b815a9889779b
DIFF: https://github.com/llvm/llvm-project/commit/45aba5149b94412da01eef482e8b815a9889779b.diff

LOG: [mlir][tosa] Align AddOp examples to spec (#135266)

* simple example variable name alignment

Signed-off-by: Jerry Ge <jerry.ge at arm.com>

Added: 
    

Modified: 
    mlir/include/mlir/Dialect/Tosa/IR/TosaOps.td

Removed: 
    


################################################################################
diff  --git a/mlir/include/mlir/Dialect/Tosa/IR/TosaOps.td b/mlir/include/mlir/Dialect/Tosa/IR/TosaOps.td
index 964fa5943cd37..1ec56a77593c2 100644
--- a/mlir/include/mlir/Dialect/Tosa/IR/TosaOps.td
+++ b/mlir/include/mlir/Dialect/Tosa/IR/TosaOps.td
@@ -611,10 +611,10 @@ def Tosa_AddOp : Tosa_ElementwiseOp<"add", [
 
     ```mlir
     // Elementwise addition.
-    %out = tosa.add %in1, %in2 : tensor<12x6xf32>, tensor<12x6xf32> -> tensor<12x6xf32>
+    %out = tosa.add %input1, %input2 : tensor<12x6xf32>, tensor<12x6xf32> -> tensor<12x6xf32>
 
     // Elementwise addition with broadcasting.
-    %out = tosa.add %in1, %in2 : tensor<12x6xsi32>, tensor<1x1xsi32> -> tensor<12x6xsi32>
+    %out = tosa.add %input1, %input2 : tensor<12x6xsi32>, tensor<1x1xsi32> -> tensor<12x6xsi32>
     ```
   }];
 


        


More information about the Mlir-commits mailing list