From 3c99695191819fd4bf7308fa0594d2d815363fe7 Mon Sep 17 00:00:00 2001 From: Jerry Ge Date: Thu, 10 Apr 2025 14:41:09 -0700 Subject: [PATCH] [mlir][tosa] Align AddOp examples to spec * simple example variable name alignment Signed-off-by: Jerry Ge Change-Id: Iec71c6b047f4ec2fdad55dc2b6123efb307f4c4d --- mlir/include/mlir/Dialect/Tosa/IR/TosaOps.td | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mlir/include/mlir/Dialect/Tosa/IR/TosaOps.td b/mlir/include/mlir/Dialect/Tosa/IR/TosaOps.td index 40aa2898d6edd..f62d85e56c188 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> ``` }];