Fixed coverity issues (#10014)

This commit is contained in:
Ilya Churaev 2022-01-31 12:51:52 +03:00 committed by GitHub
parent 80d70dd438
commit 0a2c0e1539
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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<int64_t> m_axes;
@ -437,7 +437,7 @@ void InterpolateEval<T>::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
} // namespace ngraph