"ssh:/git@developer.sourcefind.cn:2222/OpenDAS/vllm_cscc.git" did not exist on "efa6bed264b2dbb4c5d7a28e49fab60f6c69aef2"
Unverified Commit 0eadaeff authored by mohankku's avatar mohankku Committed by GitHub
Browse files

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


Signed-off-by: default avatarMohan Kumar Kumar <mohan.cbein@gmail.com>
Signed-off-by: default avatarmohankku <mohan.cbein@gmail.com>
parent 0077c863
...@@ -145,7 +145,8 @@ void dynamic_scaled_int8_quant_impl(const scalar_t* input, int8_t* output, ...@@ -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) { if constexpr (AZP) {
float max_scalar = max_value.reduce_max(); float max_scalar = max_value.reduce_max();
float min_scalar = min_value.reduce_min(); float min_scalar = min_value.reduce_min();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment