Skip to content

Commit 3c99695

Browse files
committed
[mlir][tosa] Align AddOp examples to spec
* simple example variable name alignment Signed-off-by: Jerry Ge <[email protected]> Change-Id: Iec71c6b047f4ec2fdad55dc2b6123efb307f4c4d
1 parent 641de84 commit 3c99695

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)