From 9c77f2ecfd39d2bbe7359d73ca9e2124261270d9 Mon Sep 17 00:00:00 2001 From: lry89757 Date: Thu, 20 Oct 2022 01:05:29 +0800 Subject: [PATCH] Add the cmath header --- src/layer/grid_sample.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/layer/grid_sample.cpp b/src/layer/grid_sample.cpp index 1c5bf9ed507..f84db53385f 100644 --- a/src/layer/grid_sample.cpp +++ b/src/layer/grid_sample.cpp @@ -13,6 +13,7 @@ // specific language governing permissions and limitations under the License. #include "grid_sample.h" +#include namespace ncnn { @@ -183,7 +184,6 @@ int Grid_Sample::forward(const std::vector& bottom_blobs, std::vector& 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; @@ -198,7 +198,6 @@ int Grid_Sample::forward(const std::vector& bottom_blobs, std::vector& 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++) {