Skip to content

Commit

Permalink
fix gridsample x86 warnings (#5096)
Browse files Browse the repository at this point in the history
  • Loading branch information
nihui authored Oct 23, 2023
1 parent 7afdbfa commit 9dda7e3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
5 changes: 1 addition & 4 deletions src/layer/x86/gridsample_bilinear_apply_interpolation.h
Original file line number Diff line number Diff line change
Expand Up @@ -284,9 +284,6 @@ static void gridsample_3d_bilinear_apply_interpolation_p4(const Mat& src, Mat& d
}
}
}
#pragma fenv_access(off)

#pragma float_control(precise, off)
#endif // __SSE2__

static void gridsample_2d_bilinear_apply_interpolation_p1(const Mat& src, Mat& dst, const Mat& offset_value, const Option& opt)
Expand Down Expand Up @@ -370,4 +367,4 @@ static void gridsample_3d_bilinear_apply_interpolation_p1(const Mat& src, Mat& d
offset_value_ptr += 11;
}
}
}
}
6 changes: 3 additions & 3 deletions src/layer/x86/gridsample_compute_blob.h
Original file line number Diff line number Diff line change
Expand Up @@ -51,12 +51,12 @@ template<GridSample::PaddingMode pd, bool align_corner>
struct compute_coord
{
#if __AVX__
__m256 operator()(__m256 length, __m256 coord)
__m256 operator()(__m256 /*length*/, __m256 coord)
{
return coord;
}
#endif // __AVX__
float operator()(int length, float coord)
float operator()(int /*length*/, float coord)
{
return coord;
}
Expand Down Expand Up @@ -142,4 +142,4 @@ struct compute_coord<GridSample::Padding_REFLECTION, /*align_corner*/ false>

#include "gridsample_bilinear_compute_blob.h"
#include "gridsample_bicubic_compute_blob.h"
#include "gridsample_nearest_compute_blob.h"
#include "gridsample_nearest_compute_blob.h"

0 comments on commit 9dda7e3

Please sign in to comment.