From 5cb8116ccb6ce0d32b004310ad21533b09c19440 Mon Sep 17 00:00:00 2001 From: Alexandra Sidorova Date: Wed, 3 Jul 2024 13:01:20 +0400 Subject: [PATCH] [Snippets] Updated default value in UpdateSubtensors --- .../snippets/src/lowered/pass/propagate_subtensors.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/common/snippets/src/lowered/pass/propagate_subtensors.cpp b/src/common/snippets/src/lowered/pass/propagate_subtensors.cpp index a7bcb65667d5ea..5e407db8074db1 100644 --- a/src/common/snippets/src/lowered/pass/propagate_subtensors.cpp +++ b/src/common/snippets/src/lowered/pass/propagate_subtensors.cpp @@ -15,13 +15,17 @@ namespace snippets { namespace lowered { namespace pass { namespace { + +// SIZE_MAX - dynamic value +constexpr size_t DEFAULT_VALUE = SIZE_MAX - 1; + void propagate_updated_subtensor_through_loop(const LinearIR& linear_ir, const LoopInfoPtr& loop_info, LinearIR::container::const_iterator begin, LinearIR::container::const_iterator end, bool most_outer_loop, - const size_t new_dim_value = SIZE_MAX) { - OPENVINO_ASSERT(snippets::utils::implication(most_outer_loop, new_dim_value != SIZE_MAX), + const size_t new_dim_value = DEFAULT_VALUE) { + OPENVINO_ASSERT(snippets::utils::implication(most_outer_loop, new_dim_value != DEFAULT_VALUE), "if the updated subtensor propagation was called for the outer loop, new_dim_value must not be equal to default value"); std::map original_shapes; // First step: set new dim value to the corresponding input_ports' dimensions