diff --git a/mace/kernels/resize_bicubic.h b/mace/kernels/resize_bicubic.h index bf61f175fe66a23e754418f580684a3921bfcb23..37e866306f8ac4d1bee6acaa0a6ac4a8c3af4344 100644 --- a/mace/kernels/resize_bicubic.h +++ b/mace/kernels/resize_bicubic.h @@ -95,7 +95,6 @@ inline void ResizeImage(const float *images, const float height_scale, const float width_scale, float *output) { - std::vector coeff = {0.0, 0.0, 0.0, 0.0}; #pragma omp parallel for collapse(2) for (index_t b = 0; b < batch_size; ++b) { for (index_t y = 0; y < out_height; ++y) { @@ -116,6 +115,7 @@ inline void ResizeImage(const float *images, images + (b * channels + c) * in_height * in_width; float *channel_output_ptr = output + (b * channels + c) * out_height * out_width; + std::vector coeff(4, 0.0); for (index_t i = 0; i < 4; ++i) { const std::vector values = { static_cast(channel_input_ptr