Skip to content

Commit b8fefb9

Browse files
authored
clear warning: unused variable while building on x86-wsl platform (#5444)
1 parent e31be49 commit b8fefb9

17 files changed

+0
-33
lines changed

src/layer/fold.cpp

-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,6 @@ int Fold::load_param(const ParamDict& pd)
4141

4242
int Fold::forward(const Mat& bottom_blob, Mat& top_blob, const Option& opt) const
4343
{
44-
const int size = bottom_blob.w;
4544
const int max_channels = bottom_blob.h;
4645
size_t elemsize = bottom_blob.elemsize;
4746

src/layer/x86/deformableconv2d_pack16.h

-2
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,6 @@ static void deformableconv2d_pack16_avx512(const std::vector<Mat>& bottom_blobs,
2727
int outw = top_blob.w;
2828
int outh = top_blob.h;
2929
int outch = top_blob.c;
30-
const int size = outw * outh;
31-
const int maxk = kernel_w * kernel_h;
3230

3331
const float* bias_data_ptr = bias_data;
3432
const int elempack = 16;

src/layer/x86/deformableconv2d_pack16to1.h

-2
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,6 @@ static void deformableconv2d_pack16to1_avx512(const std::vector<Mat>& bottom_blo
2727
int outw = top_blob.w;
2828
int outh = top_blob.h;
2929
int outch = top_blob.c;
30-
const int size = outw * outh;
31-
const int maxk = kernel_w * kernel_h;
3230

3331
const float* bias_data_ptr = bias_data;
3432
const int elempack = 16;

src/layer/x86/deformableconv2d_pack16to4.h

-2
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,6 @@ static void deformableconv2d_pack16to4_avx512(const std::vector<Mat>& bottom_blo
2727
int outw = top_blob.w;
2828
int outh = top_blob.h;
2929
int outch = top_blob.c;
30-
const int size = outw * outh;
31-
const int maxk = kernel_w * kernel_h;
3230

3331
const float* bias_data_ptr = bias_data;
3432
const int elempack = 16;

src/layer/x86/deformableconv2d_pack16to8.h

-2
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,6 @@ static void deformableconv2d_pack16to8_avx512(const std::vector<Mat>& bottom_blo
2727
int outw = top_blob.w;
2828
int outh = top_blob.h;
2929
int outch = top_blob.c;
30-
const int size = outw * outh;
31-
const int maxk = kernel_w * kernel_h;
3230

3331
const float* bias_data_ptr = bias_data;
3432
const int elempack = 16;

src/layer/x86/deformableconv2d_pack1to16.h

-2
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,6 @@ static void deformableconv2d_pack1to16_avx512(const std::vector<Mat>& bottom_blo
2727
int outw = top_blob.w;
2828
int outh = top_blob.h;
2929
int outch = top_blob.c;
30-
const int size = outw * outh;
31-
const int maxk = kernel_w * kernel_h;
3230

3331
const float* bias_data_ptr = bias_data;
3432
const int elempack = 1;

src/layer/x86/deformableconv2d_pack1to4.h

-2
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,6 @@ static void deformableconv2d_pack1to4_sse(const std::vector<Mat>& bottom_blobs,
2727
int outw = top_blob.w;
2828
int outh = top_blob.h;
2929
int outch = top_blob.c;
30-
const int size = outw * outh;
31-
const int maxk = kernel_w * kernel_h;
3230

3331
const float* bias_data_ptr = bias_data;
3432
const int elempack = 1;

src/layer/x86/deformableconv2d_pack1to8.h

-2
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,6 @@ static void deformableconv2d_pack1to8_avx(const std::vector<Mat>& bottom_blobs,
2727
int outw = top_blob.w;
2828
int outh = top_blob.h;
2929
int outch = top_blob.c;
30-
const int size = outw * outh;
31-
const int maxk = kernel_w * kernel_h;
3230

3331
const float* bias_data_ptr = bias_data;
3432
const int elempack = 1;

src/layer/x86/deformableconv2d_pack4.h

-2
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,6 @@ static void deformableconv2d_pack4_sse(const std::vector<Mat>& bottom_blobs, Mat
2727
int outw = top_blob.w;
2828
int outh = top_blob.h;
2929
int outch = top_blob.c;
30-
const int size = outw * outh;
31-
const int maxk = kernel_w * kernel_h;
3230

3331
const float* bias_data_ptr = bias_data;
3432
const int elempack = 4;

src/layer/x86/deformableconv2d_pack4to1.h

-2
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,6 @@ static void deformableconv2d_pack4to1_sse(const std::vector<Mat>& bottom_blobs,
2727
int outw = top_blob.w;
2828
int outh = top_blob.h;
2929
int outch = top_blob.c;
30-
const int size = outw * outh;
31-
const int maxk = kernel_w * kernel_h;
3230

3331
const float* bias_data_ptr = bias_data;
3432
const int elempack = 4;

src/layer/x86/deformableconv2d_pack4to16.h

-2
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,6 @@ static void deformableconv2d_pack4to16_avx512(const std::vector<Mat>& bottom_blo
2727
int outw = top_blob.w;
2828
int outh = top_blob.h;
2929
int outch = top_blob.c;
30-
const int size = outw * outh;
31-
const int maxk = kernel_w * kernel_h;
3230

3331
const float* bias_data_ptr = bias_data;
3432
const int elempack = 4;

src/layer/x86/deformableconv2d_pack4to8.h

-2
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,6 @@ static void deformableconv2d_pack4to8_avx(const std::vector<Mat>& bottom_blobs,
2727
int outw = top_blob.w;
2828
int outh = top_blob.h;
2929
int outch = top_blob.c;
30-
const int size = outw * outh;
31-
const int maxk = kernel_w * kernel_h;
3230

3331
const float* bias_data_ptr = bias_data;
3432
const int elempack = 4;

src/layer/x86/deformableconv2d_pack8.h

-2
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,6 @@ static void deformableconv2d_pack8_avx(const std::vector<Mat>& bottom_blobs, Mat
2727
int outw = top_blob.w;
2828
int outh = top_blob.h;
2929
int outch = top_blob.c;
30-
const int size = outw * outh;
31-
const int maxk = kernel_w * kernel_h;
3230

3331
const float* bias_data_ptr = bias_data;
3432
const int elempack = 8;

src/layer/x86/deformableconv2d_pack8to1.h

-2
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,6 @@ static void deformableconv2d_pack8to1_avx(const std::vector<Mat>& bottom_blobs,
2727
int outw = top_blob.w;
2828
int outh = top_blob.h;
2929
int outch = top_blob.c;
30-
const int size = outw * outh;
31-
const int maxk = kernel_w * kernel_h;
3230

3331
const float* bias_data_ptr = bias_data;
3432
const int elempack = 8;

src/layer/x86/deformableconv2d_pack8to16.h

-2
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,6 @@ static void deformableconv2d_pack8to16_avx512(const std::vector<Mat>& bottom_blo
2727
int outw = top_blob.w;
2828
int outh = top_blob.h;
2929
int outch = top_blob.c;
30-
const int size = outw * outh;
31-
const int maxk = kernel_w * kernel_h;
3230

3331
const float* bias_data_ptr = bias_data;
3432
const int elempack = 8;

src/layer/x86/deformableconv2d_pack8to4.h

-2
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,6 @@ static void deformableconv2d_pack8to4_avx(const std::vector<Mat>& bottom_blobs,
2727
int outw = top_blob.w;
2828
int outh = top_blob.h;
2929
int outch = top_blob.c;
30-
const int size = outw * outh;
31-
const int maxk = kernel_w * kernel_h;
3230

3331
const float* bias_data_ptr = bias_data;
3432
const int elempack = 8;

src/layer/x86/deformableconv2d_x86.cpp

-2
Original file line numberDiff line numberDiff line change
@@ -265,8 +265,6 @@ int DeformableConv2D_x86::forward(const std::vector<Mat>& bottom_blobs, std::vec
265265
if (top_blob.empty())
266266
return -100;
267267

268-
const int num_input = channels * elempack;
269-
270268
if (opt.use_sgemm_convolution)
271269
{
272270
const int size = outw * outh;

0 commit comments

Comments
 (0)