[Bugfix] Avoid uninitialized usage of azp_val when AZP is false. (#24335)

Signed-off-by: Mohan Kumar Kumar <mohan.cbein@gmail.com>
Signed-off-by: mohankku <mohan.cbein@gmail.com>
This commit is contained in:
mohankku
2025-09-06 08:17:03 -07:00
committed by GitHub
parent 0077c8634e
commit 0eadaeff7e

View File

@ -145,7 +145,8 @@ void dynamic_scaled_int8_quant_impl(const scalar_t* input, int8_t* output,
}
}
float scale_val, azp_val;
float scale_val;
float azp_val = 0.0f;
if constexpr (AZP) {
float max_scalar = max_value.reduce_max();
float min_scalar = min_value.reduce_min();