Skip to content

Commit 45aba51

Browse files
authored
[mlir][tosa] Align AddOp examples to spec (#135266)
* simple example variable name alignment Signed-off-by: Jerry Ge <[email protected]>
1 parent f9b8971 commit 45aba51

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -611,10 +611,10 @@ def Tosa_AddOp : Tosa_ElementwiseOp<"add", [
611611

612612
```mlir
613613
// Elementwise addition.
614-
%out = tosa.add %in1, %in2 : tensor<12x6xf32>, tensor<12x6xf32> -> tensor<12x6xf32>
614+
%out = tosa.add %input1, %input2 : tensor<12x6xf32>, tensor<12x6xf32> -> tensor<12x6xf32>
615615

616616
// Elementwise addition with broadcasting.
617-
%out = tosa.add %in1, %in2 : tensor<12x6xsi32>, tensor<1x1xsi32> -> tensor<12x6xsi32>
617+
%out = tosa.add %input1, %input2 : tensor<12x6xsi32>, tensor<1x1xsi32> -> tensor<12x6xsi32>
618618
```
619619
}];
620620

0 commit comments

Comments
 (0)