From b8fefb977d83ae745716fa9d9b42303bc4e20007 Mon Sep 17 00:00:00 2001 From: Tabbleman <89694978+Tabbleman@users.noreply.github.com> Date: Wed, 1 May 2024 22:49:12 +0800 Subject: [PATCH] clear warning: unused variable while building on x86-wsl platform (#5444) --- src/layer/fold.cpp | 1 - src/layer/x86/deformableconv2d_pack16.h | 2 -- src/layer/x86/deformableconv2d_pack16to1.h | 2 -- src/layer/x86/deformableconv2d_pack16to4.h | 2 -- src/layer/x86/deformableconv2d_pack16to8.h | 2 -- src/layer/x86/deformableconv2d_pack1to16.h | 2 -- src/layer/x86/deformableconv2d_pack1to4.h | 2 -- src/layer/x86/deformableconv2d_pack1to8.h | 2 -- src/layer/x86/deformableconv2d_pack4.h | 2 -- src/layer/x86/deformableconv2d_pack4to1.h | 2 -- src/layer/x86/deformableconv2d_pack4to16.h | 2 -- src/layer/x86/deformableconv2d_pack4to8.h | 2 -- src/layer/x86/deformableconv2d_pack8.h | 2 -- src/layer/x86/deformableconv2d_pack8to1.h | 2 -- src/layer/x86/deformableconv2d_pack8to16.h | 2 -- src/layer/x86/deformableconv2d_pack8to4.h | 2 -- src/layer/x86/deformableconv2d_x86.cpp | 2 -- 17 files changed, 33 deletions(-) diff --git a/src/layer/fold.cpp b/src/layer/fold.cpp index c14f01fbb72..60242ad8117 100644 --- a/src/layer/fold.cpp +++ b/src/layer/fold.cpp @@ -41,7 +41,6 @@ int Fold::load_param(const ParamDict& pd) int Fold::forward(const Mat& bottom_blob, Mat& top_blob, const Option& opt) const { - const int size = bottom_blob.w; const int max_channels = bottom_blob.h; size_t elemsize = bottom_blob.elemsize; diff --git a/src/layer/x86/deformableconv2d_pack16.h b/src/layer/x86/deformableconv2d_pack16.h index f15d40f3c1b..5491142cce1 100644 --- a/src/layer/x86/deformableconv2d_pack16.h +++ b/src/layer/x86/deformableconv2d_pack16.h @@ -27,8 +27,6 @@ static void deformableconv2d_pack16_avx512(const std::vector& bottom_blobs, int outw = top_blob.w; int outh = top_blob.h; int outch = top_blob.c; - const int size = outw * outh; - const int maxk = kernel_w * kernel_h; const float* bias_data_ptr = bias_data; const int elempack = 16; diff --git a/src/layer/x86/deformableconv2d_pack16to1.h b/src/layer/x86/deformableconv2d_pack16to1.h index 1238537bd05..fa78c6c4060 100644 --- a/src/layer/x86/deformableconv2d_pack16to1.h +++ b/src/layer/x86/deformableconv2d_pack16to1.h @@ -27,8 +27,6 @@ static void deformableconv2d_pack16to1_avx512(const std::vector& bottom_blo int outw = top_blob.w; int outh = top_blob.h; int outch = top_blob.c; - const int size = outw * outh; - const int maxk = kernel_w * kernel_h; const float* bias_data_ptr = bias_data; const int elempack = 16; diff --git a/src/layer/x86/deformableconv2d_pack16to4.h b/src/layer/x86/deformableconv2d_pack16to4.h index 058f2bede25..91277137ce9 100644 --- a/src/layer/x86/deformableconv2d_pack16to4.h +++ b/src/layer/x86/deformableconv2d_pack16to4.h @@ -27,8 +27,6 @@ static void deformableconv2d_pack16to4_avx512(const std::vector& bottom_blo int outw = top_blob.w; int outh = top_blob.h; int outch = top_blob.c; - const int size = outw * outh; - const int maxk = kernel_w * kernel_h; const float* bias_data_ptr = bias_data; const int elempack = 16; diff --git a/src/layer/x86/deformableconv2d_pack16to8.h b/src/layer/x86/deformableconv2d_pack16to8.h index c64f5e46895..e08c68ffd60 100644 --- a/src/layer/x86/deformableconv2d_pack16to8.h +++ b/src/layer/x86/deformableconv2d_pack16to8.h @@ -27,8 +27,6 @@ static void deformableconv2d_pack16to8_avx512(const std::vector& bottom_blo int outw = top_blob.w; int outh = top_blob.h; int outch = top_blob.c; - const int size = outw * outh; - const int maxk = kernel_w * kernel_h; const float* bias_data_ptr = bias_data; const int elempack = 16; diff --git a/src/layer/x86/deformableconv2d_pack1to16.h b/src/layer/x86/deformableconv2d_pack1to16.h index d7e4a64ff8e..df890dccef3 100644 --- a/src/layer/x86/deformableconv2d_pack1to16.h +++ b/src/layer/x86/deformableconv2d_pack1to16.h @@ -27,8 +27,6 @@ static void deformableconv2d_pack1to16_avx512(const std::vector& bottom_blo int outw = top_blob.w; int outh = top_blob.h; int outch = top_blob.c; - const int size = outw * outh; - const int maxk = kernel_w * kernel_h; const float* bias_data_ptr = bias_data; const int elempack = 1; diff --git a/src/layer/x86/deformableconv2d_pack1to4.h b/src/layer/x86/deformableconv2d_pack1to4.h index 512cf3e64f0..4828dc3166e 100644 --- a/src/layer/x86/deformableconv2d_pack1to4.h +++ b/src/layer/x86/deformableconv2d_pack1to4.h @@ -27,8 +27,6 @@ static void deformableconv2d_pack1to4_sse(const std::vector& bottom_blobs, int outw = top_blob.w; int outh = top_blob.h; int outch = top_blob.c; - const int size = outw * outh; - const int maxk = kernel_w * kernel_h; const float* bias_data_ptr = bias_data; const int elempack = 1; diff --git a/src/layer/x86/deformableconv2d_pack1to8.h b/src/layer/x86/deformableconv2d_pack1to8.h index 2db40aa63e0..774140eb93a 100644 --- a/src/layer/x86/deformableconv2d_pack1to8.h +++ b/src/layer/x86/deformableconv2d_pack1to8.h @@ -27,8 +27,6 @@ static void deformableconv2d_pack1to8_avx(const std::vector& bottom_blobs, int outw = top_blob.w; int outh = top_blob.h; int outch = top_blob.c; - const int size = outw * outh; - const int maxk = kernel_w * kernel_h; const float* bias_data_ptr = bias_data; const int elempack = 1; diff --git a/src/layer/x86/deformableconv2d_pack4.h b/src/layer/x86/deformableconv2d_pack4.h index e9b38fd86d7..64f1891edcf 100644 --- a/src/layer/x86/deformableconv2d_pack4.h +++ b/src/layer/x86/deformableconv2d_pack4.h @@ -27,8 +27,6 @@ static void deformableconv2d_pack4_sse(const std::vector& bottom_blobs, Mat int outw = top_blob.w; int outh = top_blob.h; int outch = top_blob.c; - const int size = outw * outh; - const int maxk = kernel_w * kernel_h; const float* bias_data_ptr = bias_data; const int elempack = 4; diff --git a/src/layer/x86/deformableconv2d_pack4to1.h b/src/layer/x86/deformableconv2d_pack4to1.h index 2910b16ca8f..d5cb959041f 100644 --- a/src/layer/x86/deformableconv2d_pack4to1.h +++ b/src/layer/x86/deformableconv2d_pack4to1.h @@ -27,8 +27,6 @@ static void deformableconv2d_pack4to1_sse(const std::vector& bottom_blobs, int outw = top_blob.w; int outh = top_blob.h; int outch = top_blob.c; - const int size = outw * outh; - const int maxk = kernel_w * kernel_h; const float* bias_data_ptr = bias_data; const int elempack = 4; diff --git a/src/layer/x86/deformableconv2d_pack4to16.h b/src/layer/x86/deformableconv2d_pack4to16.h index 6f0393e595d..49238fddc35 100644 --- a/src/layer/x86/deformableconv2d_pack4to16.h +++ b/src/layer/x86/deformableconv2d_pack4to16.h @@ -27,8 +27,6 @@ static void deformableconv2d_pack4to16_avx512(const std::vector& bottom_blo int outw = top_blob.w; int outh = top_blob.h; int outch = top_blob.c; - const int size = outw * outh; - const int maxk = kernel_w * kernel_h; const float* bias_data_ptr = bias_data; const int elempack = 4; diff --git a/src/layer/x86/deformableconv2d_pack4to8.h b/src/layer/x86/deformableconv2d_pack4to8.h index 86cd0b75a83..f1382da68bb 100644 --- a/src/layer/x86/deformableconv2d_pack4to8.h +++ b/src/layer/x86/deformableconv2d_pack4to8.h @@ -27,8 +27,6 @@ static void deformableconv2d_pack4to8_avx(const std::vector& bottom_blobs, int outw = top_blob.w; int outh = top_blob.h; int outch = top_blob.c; - const int size = outw * outh; - const int maxk = kernel_w * kernel_h; const float* bias_data_ptr = bias_data; const int elempack = 4; diff --git a/src/layer/x86/deformableconv2d_pack8.h b/src/layer/x86/deformableconv2d_pack8.h index 93dcd682b0c..40581c9f906 100644 --- a/src/layer/x86/deformableconv2d_pack8.h +++ b/src/layer/x86/deformableconv2d_pack8.h @@ -27,8 +27,6 @@ static void deformableconv2d_pack8_avx(const std::vector& bottom_blobs, Mat int outw = top_blob.w; int outh = top_blob.h; int outch = top_blob.c; - const int size = outw * outh; - const int maxk = kernel_w * kernel_h; const float* bias_data_ptr = bias_data; const int elempack = 8; diff --git a/src/layer/x86/deformableconv2d_pack8to1.h b/src/layer/x86/deformableconv2d_pack8to1.h index d0674ed005a..90bd127f955 100644 --- a/src/layer/x86/deformableconv2d_pack8to1.h +++ b/src/layer/x86/deformableconv2d_pack8to1.h @@ -27,8 +27,6 @@ static void deformableconv2d_pack8to1_avx(const std::vector& bottom_blobs, int outw = top_blob.w; int outh = top_blob.h; int outch = top_blob.c; - const int size = outw * outh; - const int maxk = kernel_w * kernel_h; const float* bias_data_ptr = bias_data; const int elempack = 8; diff --git a/src/layer/x86/deformableconv2d_pack8to16.h b/src/layer/x86/deformableconv2d_pack8to16.h index bcd63bed3a7..58819693699 100644 --- a/src/layer/x86/deformableconv2d_pack8to16.h +++ b/src/layer/x86/deformableconv2d_pack8to16.h @@ -27,8 +27,6 @@ static void deformableconv2d_pack8to16_avx512(const std::vector& bottom_blo int outw = top_blob.w; int outh = top_blob.h; int outch = top_blob.c; - const int size = outw * outh; - const int maxk = kernel_w * kernel_h; const float* bias_data_ptr = bias_data; const int elempack = 8; diff --git a/src/layer/x86/deformableconv2d_pack8to4.h b/src/layer/x86/deformableconv2d_pack8to4.h index 849bbd7dd11..f1a5fb7f50f 100644 --- a/src/layer/x86/deformableconv2d_pack8to4.h +++ b/src/layer/x86/deformableconv2d_pack8to4.h @@ -27,8 +27,6 @@ static void deformableconv2d_pack8to4_avx(const std::vector& bottom_blobs, int outw = top_blob.w; int outh = top_blob.h; int outch = top_blob.c; - const int size = outw * outh; - const int maxk = kernel_w * kernel_h; const float* bias_data_ptr = bias_data; const int elempack = 8; diff --git a/src/layer/x86/deformableconv2d_x86.cpp b/src/layer/x86/deformableconv2d_x86.cpp index b880adb1e4d..8d5048b819f 100644 --- a/src/layer/x86/deformableconv2d_x86.cpp +++ b/src/layer/x86/deformableconv2d_x86.cpp @@ -265,8 +265,6 @@ int DeformableConv2D_x86::forward(const std::vector& bottom_blobs, std::vec if (top_blob.empty()) return -100; - const int num_input = channels * elempack; - if (opt.use_sgemm_convolution) { const int size = outw * outh;