Skip to content

Commit 4408ac4

Browse files
committed
Remove no longer needed Tosa Rescale constructor
A constructor with default value for both input_unsigned and output_unsigned is now being generated with both wrapped and unwrapped parameters.
1 parent 01b5e79 commit 4408ac4

File tree

1 file changed

+0
-18
lines changed

1 file changed

+0
-18
lines changed

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

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1905,24 +1905,6 @@ def Tosa_RescaleOp: Tosa_Op<"rescale", [Pure,
19051905
Tosa_Tensor:$output
19061906
);
19071907

1908-
// Custom builder that does not require optional input_unsigned and
1909-
// output_unsigned.
1910-
let builders = [
1911-
OpBuilder<(ins "::mlir::Type":$output,
1912-
"::mlir::Value":$input,
1913-
"::mlir::IntegerAttr":$input_zp,
1914-
"::mlir::IntegerAttr":$output_zp,
1915-
"::mlir::DenseI32ArrayAttr":$multiplier,
1916-
"::mlir::DenseI8ArrayAttr":$shift,
1917-
"::mlir::BoolAttr":$scale32,
1918-
"::mlir::BoolAttr":$double_round,
1919-
"::mlir::BoolAttr":$per_channel), [{
1920-
auto FalseAttr = BoolAttr::get($_builder.getContext(), false);
1921-
build($_builder, $_state, output, input, input_zp, output_zp, multiplier,
1922-
shift, scale32, double_round, per_channel, FalseAttr, FalseAttr);
1923-
}]>
1924-
];
1925-
19261908
let assemblyFormat = "operands attr-dict `:` functional-type(operands, results)";
19271909
}
19281910

0 commit comments

Comments
 (0)