Skip to content

Remove checks on quant_min/quant_max #7256

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
merged 1 commit into from
Dec 10, 2024
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 backends/cadence/fusion_g3/operators/op_quantize.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -570,7 +570,7 @@ Tensor& quantize_per_tensor_out(
err == torch::executor::Error::Ok,
"Failed to resize out Tensor in quantize_per_tensor_out");

check_quantize_per_tensor_args(input, quant_min, quant_max, dtype, out);
// check_quantize_per_tensor_args(input, quant_min, quant_max, dtype, out);

float scale_data = (float)scale;
int zero_point_data = (int)zero_point;
Expand Down Expand Up @@ -696,7 +696,7 @@ Tensor& quantize_per_channel_out(
zero_point.numel(),
input.size(axis));

check_quantize_per_tensor_args(input, quant_min, quant_max, dtype, out);
// check_quantize_per_tensor_args(input, quant_min, quant_max, dtype, out);

const double* scale_dt = scale.const_data_ptr<double>();
const int64_t* zero_point_dt = zero_point.const_data_ptr<int64_t>();
Expand Down
Loading