Skip to content

Commit 9c39732

Browse files
zonglinpengfacebook-github-bot
authored andcommitted
fix g3 dequant
Summary: fix dequant signature Differential Revision: D68109702
1 parent a727b55 commit 9c39732

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

backends/cadence/fusion_g3/operators/op_dequantize.cpp

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ void check_dequantize_per_tensor_args(
6767

6868
ET_CHECK_MSG(
6969
input.scalar_type() == dtype,
70-
"input.scalar_type() %" PRId8 " is not matching dtype argumenta:",
70+
"input.scalar_type() %" PRId8 " is not matching dtype arguments:",
7171
static_cast<int8_t>(input.scalar_type()));
7272

7373
if (out_dtype.has_value()) {
@@ -561,11 +561,12 @@ Tensor& dequantize_per_tensor_out(
561561
const Tensor& input,
562562
double scale,
563563
int64_t zero_point,
564-
int64_t quant_min,
565-
int64_t quant_max,
564+
__ET_UNUSED int64_t quant_min,
565+
__ET_UNUSED int64_t quant_max,
566566
ScalarType dtype,
567-
::executorch::aten::optional<ScalarType> out_dtype,
568567
Tensor& out) {
568+
static constexpr const ScalarType out_dtype = ScalarType::Float;
569+
569570
#ifdef OP_ARG_CHECK
570571
torch::executor::Error err = resize_tensor(out, input.sizes());
571572
ET_CHECK_MSG(

0 commit comments

Comments
 (0)