Skip to content

Commit

Permalink
[Fix][BUILD] Fix BUILD warning caused by uninitialized pointer (#2394)
Browse files Browse the repository at this point in the history
  • Loading branch information
CuiYifeng authored Sep 12, 2023
1 parent 8208d49 commit 5c8b65d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion itex/core/kernels/common/quantized_conv_ops.h
Original file line number Diff line number Diff line change
Expand Up @@ -468,7 +468,8 @@ class LegacyQuantizedConvOpBase
scaled_bias.flat<float>());

const std::vector<float>& scale = this->post_op_util_.GetOutputScale();
float* bias_scales_ptr;
float* bias_scales_ptr = nullptr;

if (std::is_same<Toutput, float>::value ||
std::is_same<Toutput, Eigen::bfloat16>::value ||
std::is_same<Toutput, Eigen::half>::value) {
Expand Down

0 comments on commit 5c8b65d

Please sign in to comment.