Skip to content

Commit

Permalink
[Snippets] Updated default value in UpdateSubtensors
Browse files Browse the repository at this point in the history
  • Loading branch information
a-sidorova committed Jul 3, 2024
1 parent 033617b commit 5cb8116
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/common/snippets/src/lowered/pass/propagate_subtensors.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<lowered::PortDescriptorPtr, snippets::VectorDims> original_shapes;
// First step: set new dim value to the corresponding input_ports' dimensions
Expand Down

0 comments on commit 5cb8116

Please sign in to comment.