Skip to content

Commit

Permalink
clear warning: unused variable while building on x86-wsl platform (#5444
Browse files Browse the repository at this point in the history
)
  • Loading branch information
Tabbleman committed May 1, 2024
1 parent e31be49 commit b8fefb9
Show file tree
Hide file tree
Showing 17 changed files with 0 additions and 33 deletions.
1 change: 0 additions & 1 deletion src/layer/fold.cpp
Expand Up @@ -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;

Expand Down
2 changes: 0 additions & 2 deletions src/layer/x86/deformableconv2d_pack16.h
Expand Up @@ -27,8 +27,6 @@ static void deformableconv2d_pack16_avx512(const std::vector<Mat>& 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;
Expand Down
2 changes: 0 additions & 2 deletions src/layer/x86/deformableconv2d_pack16to1.h
Expand Up @@ -27,8 +27,6 @@ static void deformableconv2d_pack16to1_avx512(const std::vector<Mat>& 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;
Expand Down
2 changes: 0 additions & 2 deletions src/layer/x86/deformableconv2d_pack16to4.h
Expand Up @@ -27,8 +27,6 @@ static void deformableconv2d_pack16to4_avx512(const std::vector<Mat>& 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;
Expand Down
2 changes: 0 additions & 2 deletions src/layer/x86/deformableconv2d_pack16to8.h
Expand Up @@ -27,8 +27,6 @@ static void deformableconv2d_pack16to8_avx512(const std::vector<Mat>& 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;
Expand Down
2 changes: 0 additions & 2 deletions src/layer/x86/deformableconv2d_pack1to16.h
Expand Up @@ -27,8 +27,6 @@ static void deformableconv2d_pack1to16_avx512(const std::vector<Mat>& 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;
Expand Down
2 changes: 0 additions & 2 deletions src/layer/x86/deformableconv2d_pack1to4.h
Expand Up @@ -27,8 +27,6 @@ static void deformableconv2d_pack1to4_sse(const std::vector<Mat>& 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;
Expand Down
2 changes: 0 additions & 2 deletions src/layer/x86/deformableconv2d_pack1to8.h
Expand Up @@ -27,8 +27,6 @@ static void deformableconv2d_pack1to8_avx(const std::vector<Mat>& 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;
Expand Down
2 changes: 0 additions & 2 deletions src/layer/x86/deformableconv2d_pack4.h
Expand Up @@ -27,8 +27,6 @@ static void deformableconv2d_pack4_sse(const std::vector<Mat>& 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;
Expand Down
2 changes: 0 additions & 2 deletions src/layer/x86/deformableconv2d_pack4to1.h
Expand Up @@ -27,8 +27,6 @@ static void deformableconv2d_pack4to1_sse(const std::vector<Mat>& 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;
Expand Down
2 changes: 0 additions & 2 deletions src/layer/x86/deformableconv2d_pack4to16.h
Expand Up @@ -27,8 +27,6 @@ static void deformableconv2d_pack4to16_avx512(const std::vector<Mat>& 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;
Expand Down
2 changes: 0 additions & 2 deletions src/layer/x86/deformableconv2d_pack4to8.h
Expand Up @@ -27,8 +27,6 @@ static void deformableconv2d_pack4to8_avx(const std::vector<Mat>& 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;
Expand Down
2 changes: 0 additions & 2 deletions src/layer/x86/deformableconv2d_pack8.h
Expand Up @@ -27,8 +27,6 @@ static void deformableconv2d_pack8_avx(const std::vector<Mat>& 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;
Expand Down
2 changes: 0 additions & 2 deletions src/layer/x86/deformableconv2d_pack8to1.h
Expand Up @@ -27,8 +27,6 @@ static void deformableconv2d_pack8to1_avx(const std::vector<Mat>& 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;
Expand Down
2 changes: 0 additions & 2 deletions src/layer/x86/deformableconv2d_pack8to16.h
Expand Up @@ -27,8 +27,6 @@ static void deformableconv2d_pack8to16_avx512(const std::vector<Mat>& 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;
Expand Down
2 changes: 0 additions & 2 deletions src/layer/x86/deformableconv2d_pack8to4.h
Expand Up @@ -27,8 +27,6 @@ static void deformableconv2d_pack8to4_avx(const std::vector<Mat>& 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;
Expand Down
2 changes: 0 additions & 2 deletions src/layer/x86/deformableconv2d_x86.cpp
Expand Up @@ -265,8 +265,6 @@ int DeformableConv2D_x86::forward(const std::vector<Mat>& 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;
Expand Down

0 comments on commit b8fefb9

Please sign in to comment.