[Mlir-commits] [mlir] 94dbe5e - [mlir][tosa] Remove extra whitespace in the PadOp example (#134113)
llvmlistbot at llvm.org
llvmlistbot at llvm.org
Wed Apr 2 19:40:58 PDT 2025
Author: Jerry-Ge
Date: 2025-04-02T19:40:54-07:00
New Revision: 94dbe5e405a1e8c9ed1462947e2d5a8e45113d47
URL: https://github.com/llvm/llvm-project/commit/94dbe5e405a1e8c9ed1462947e2d5a8e45113d47
DIFF: https://github.com/llvm/llvm-project/commit/94dbe5e405a1e8c9ed1462947e2d5a8e45113d47.diff
LOG: [mlir][tosa] Remove extra whitespace in the PadOp example (#134113)
Trivial cleanup change.
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 75f167afd9dd0..c5314f8d9d406 100644
--- a/mlir/include/mlir/Dialect/Tosa/IR/TosaOps.td
+++ b/mlir/include/mlir/Dialect/Tosa/IR/TosaOps.td
@@ -1906,7 +1906,7 @@ def Tosa_PadOp : Tosa_InferShapedTypeOp<"pad"> {
```mlir
%pad_const = "tosa.const"() {values = dense<3.14> : tensor<1xf32>} : () -> tensor<1xf32>
- %padding = tosa.const_shape {values = dense<[1, 2, 3, 4]> : tensor<4xindex> } : () -> !tosa.shape<4>
+ %padding = tosa.const_shape {values = dense<[1, 2, 3, 4]> : tensor<4xindex>} : () -> !tosa.shape<4>
tosa.pad %arg0, %padding, %pad_const: (tensor<1x2xf32>, !tosa.shape<4>, tensor<1xf32>) -> (tensor<4x9xf32>)
```
@@ -1914,7 +1914,7 @@ def Tosa_PadOp : Tosa_InferShapedTypeOp<"pad"> {
```mlir
%pad_const = "tosa.const"() {values = dense<3.14> : tensor<1xf32>} : () -> tensor<1xf32>
- %padding = tosa.const_shape {values = dense<[-1, 2, 3, 4]> : tensor<4xindex> } : () -> !tosa.shape<4>
+ %padding = tosa.const_shape {values = dense<[-1, 2, 3, 4]> : tensor<4xindex>} : () -> !tosa.shape<4>
tosa.pad %arg0, %padding, %pad_const : (tensor<1x2xf32>, !tosa.shape<4>, tensor<1xf32>) -> (tensor<?x9xf32>)
```
}];
More information about the Mlir-commits
mailing list