Skip to content

Commit 76f3b83

Browse files
mohankkuxuebwang-amd
authored andcommitted
[Bugfix] Avoid uninitialized usage of azp_val when AZP is false. (vllm-project#24335)
Signed-off-by: Mohan Kumar Kumar <[email protected]> Signed-off-by: mohankku <[email protected]> Signed-off-by: xuebwang-amd <[email protected]>
1 parent 6e46a98 commit 76f3b83

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

csrc/cpu/dnnl_kernels.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,8 @@ void dynamic_scaled_int8_quant_impl(const scalar_t* input, int8_t* output,
145145
}
146146
}
147147

148-
float scale_val, azp_val;
148+
float scale_val;
149+
float azp_val = 0.0f;
149150
if constexpr (AZP) {
150151
float max_scalar = max_value.reduce_max();
151152
float min_scalar = min_value.reduce_min();

0 commit comments

Comments
 (0)