diff --git a/src/core/shape_inference/include/slice_shape_inference_utils.hpp b/src/core/shape_inference/include/slice_shape_inference_utils.hpp index d78ad85a0ec..9b33900692b 100644 --- a/src/core/shape_inference/include/slice_shape_inference_utils.hpp +++ b/src/core/shape_inference/include/slice_shape_inference_utils.hpp @@ -134,7 +134,11 @@ inline int64_t get_sliced_value(const int64_t& dim, const int64_t& start, const constexpr int64_t inf_bound = -1; const auto& norm_dim = dim == inf_bound ? std::numeric_limits::max() : dim; +#ifdef OPENVINO_ARCH_64_BIT const auto is_norm_dim_max = ov::internal::is_max(norm_dim); +#else + const auto is_norm_dim_max = ov::internal::is_max(size_t(norm_dim)); +#endif const int64_t lower_max = is_reverse_step ? norm_dim - 1 : norm_dim; const int64_t upper_min = is_reverse_step ? inf_bound : min_bound; diff --git a/src/core/tests/type_prop/tile.cpp b/src/core/tests/type_prop/tile.cpp index db73b27a37f..bb97e30ef52 100644 --- a/src/core/tests/type_prop/tile.cpp +++ b/src/core/tests/type_prop/tile.cpp @@ -152,12 +152,11 @@ protected: if (!labels.empty()) { auto repeats = repeats_val; - int64_t size_diff = labels.size() - repeats.size(); - if (size_diff >= 0) { - repeats.insert(repeats.begin(), size_diff, 1); + if (labels.size() > repeats.size()) { + repeats.insert(repeats.begin(), labels.size() - repeats.size(), 1); } else { - labels.insert(labels.begin(), -size_diff, ov::no_label); + labels.insert(labels.begin(), repeats.size() - labels.size(), ov::no_label); } std::transform(labels.begin(),