From da28a2972f1afc0988ed2ea18ad8885d8c72a603 Mon Sep 17 00:00:00 2001 From: xiebaiyuan Date: Thu, 18 Oct 2018 22:06:17 +0800 Subject: [PATCH] fix build issues in deepwise _conv 3*3 --- src/operators/math/depthwise_conv_3x3.cpp | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/operators/math/depthwise_conv_3x3.cpp b/src/operators/math/depthwise_conv_3x3.cpp index f745bdd85c..b6cf28a9ca 100644 --- a/src/operators/math/depthwise_conv_3x3.cpp +++ b/src/operators/math/depthwise_conv_3x3.cpp @@ -1901,9 +1901,7 @@ void DepthwiseConv3x3s2p0(const Tensor *input, const Tensor *filter, for (int c = 0; c < input_channel; c++) { const float *filter_data = filter->data() + c * 9; const float *input_data = input->data() + c * inhxw; - if (if_bias) { - const float *bias_data = bias.data() + c; - } + const float *bias_data = bias.data() + c; float *output_data = output->data() + c * outhxw; float w00 = filter_data[0]; float w01 = filter_data[1]; @@ -1914,9 +1912,7 @@ void DepthwiseConv3x3s2p0(const Tensor *input, const Tensor *filter, float w20 = filter_data[6]; float w21 = filter_data[7]; float w22 = filter_data[8]; - if (if_bias) { - float32x4_t biasv = vld1q_dup_f32(bias_data); - } + float32x4_t biasv = vld1q_dup_f32(bias_data); for (int i = 0; i < output_height; i += 1) { for (int m = 0; m < output_width - 2; m += 3) { float *output_ptr = output_data + i * output_width + m; -- GitLab