Skip to content

Commit dca6b81

Browse files
committed
[mlir][tosa] Always generated pad_const and remove input_zp attr for PadOp
Co-authored-by: Udaya Ranga <[email protected]> Co-authored-by: Tai Ly <[email protected]> Signed-off-by: Jerry Ge <[email protected]> Change-Id: I2b7a0169b7ec1158d28779713ad125c061e04592
1 parent 299be61 commit dca6b81

File tree

14 files changed

+846
-1151
lines changed

14 files changed

+846
-1151
lines changed

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

Lines changed: 168 additions & 148 deletions
Large diffs are not rendered by default.

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,10 @@ namespace tosa {
168168
std::optional<Value> createZeroPointTensor(OpBuilder &builder, Location loc,
169169
Type srcElemType, int64_t zp = 0);
170170

171+
// Create a pad-const const tensor with value of `val` of required data-type
172+
std::optional<Value> createPadConstTensor(OpBuilder &builder, Location loc,
173+
Value src, int32_t val = 0);
174+
171175
} // namespace tosa
172176
} // namespace mlir
173177

0 commit comments

Comments
 (0)