Skip to content

Fix return type mismatch in choose_qparams_tensor_out #4711

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions kernels/quantized/cpu/op_choose_qparams.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ void choose_qparams(
}
} // namespace

std::tuple<Tensor, Tensor> choose_qparams_tensor_out(
std::tuple<Tensor&, Tensor&> choose_qparams_tensor_out(
const Tensor& input,
int64_t quant_min,
int64_t quant_max,
Expand All @@ -164,7 +164,7 @@ std::tuple<Tensor, Tensor> choose_qparams_tensor_out(
return {scale_out, zero_point_out};
}

::std::tuple<Tensor, Tensor> choose_qparams_tensor_out(
::std::tuple<Tensor&, Tensor&> choose_qparams_tensor_out(
RuntimeContext& context,
const Tensor& input,
int64_t quant_min,
Expand Down
Loading