Skip to content

Commit

Permalink
Add the cmath header
Browse files Browse the repository at this point in the history
  • Loading branch information
LRY89757 committed Oct 19, 2022
1 parent 19e4511 commit 9c77f2e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/layer/grid_sample.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
// specific language governing permissions and limitations under the License.

#include "grid_sample.h"
#include <cmath>

namespace ncnn {

Expand Down Expand Up @@ -183,7 +184,6 @@ int Grid_Sample::forward(const std::vector<Mat>& bottom_blobs, std::vector<Mat>&

int w = bottom_blob.w;
int h = bottom_blob.h;
// int d = bottom_blob.d;
int channels = bottom_blob.c;
int dims = bottom_blob.dims;
size_t elemsize = bottom_blob.elemsize;
Expand All @@ -198,7 +198,6 @@ int Grid_Sample::forward(const std::vector<Mat>& bottom_blobs, std::vector<Mat>&
return -100;
if (resize_type == 1) // bilinear
{
// GSample_bilinear(src, dst, grid, align_corner, padding_mode);
#pragma omp parallel for num_threads(opt.num_threads) collapse(2)
for (int row = 0; row < outh; row++)
{
Expand Down

0 comments on commit 9c77f2e

Please sign in to comment.