From 0a2c0e153916b5ca36e841b14be25e940ed32165 Mon Sep 17 00:00:00 2001 From: Ilya Churaev Date: Mon, 31 Jan 2022 12:51:52 +0300 Subject: [PATCH] Fixed coverity issues (#10014) --- .../include/ngraph/runtime/reference/interpolate.hpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/core/reference/include/ngraph/runtime/reference/interpolate.hpp b/src/core/reference/include/ngraph/runtime/reference/interpolate.hpp index 23dc23cc203..22ee3d57dba 100644 --- a/src/core/reference/include/ngraph/runtime/reference/interpolate.hpp +++ b/src/core/reference/include/ngraph/runtime/reference/interpolate.hpp @@ -236,7 +236,7 @@ public: private: GetNearestPixel m_get_nearest_pixel; GetOriginalCoordinate m_get_original_coord; - bool m_antialias; + bool m_antialias{false}; Shape m_input_data_shape; std::vector m_axes; @@ -437,7 +437,7 @@ void InterpolateEval::linear_onnx_func(const T* input_data, T* out) { const int64_t axis_idx_offset = (input_rank == num_of_axes) ? 2 : 0; const int64_t spatial_rank = info.spatial_rank; - const int64_t points_in_neighbor = 1 << spatial_rank; + const int64_t points_in_neighbor = 1LL << spatial_rank; const T* xdata = input_data; T* ydata = out; @@ -717,4 +717,4 @@ void interpolate(T* input_data, } } // namespace reference } // namespace runtime -} // namespace ngraph \ No newline at end of file +} // namespace ngraph