Skip to content

Commit

Permalink
validation
Browse files Browse the repository at this point in the history
  • Loading branch information
aobolensk committed Jan 17, 2025
1 parent c1e88ef commit 7aa0810
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions src/common/snippets/src/lowered/pass/validate.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -153,9 +153,14 @@ bool Validate::run(LinearIR& linear_ir, lowered::LinearIR::constExprIt begin, lo
if (found != m_validation_map.cend()) {
(found->second)(expr, linear_ir);
}
OPENVINO_ASSERT(expr->get_output_count() == node->get_output_size() ||
ov::is_type<op::LoopEnd>(node) ||
ov::is_type<ov::op::v0::Result>(node), "Incorrect count of output port descriptors!");
bool bypass_output_size_check =
#ifdef SNIPPETS_DEBUG_CAPS
ov::is_type<snippets::op::PerfCountBegin>(node) || ov::is_type<snippets::op::PerfCountEnd>(node) ||
#endif // SNIPPETS_DEBUG_CAPS
ov::is_type<op::LoopEnd>(node) || ov::is_type<ov::op::v0::Result>(node);

OPENVINO_ASSERT(expr->get_output_count() == node->get_output_size() || bypass_output_size_check,
"Incorrect count of output port descriptors!");
expr->validate();
// Loop expr doesn't have shapes and layouts
if (!ov::is_type<op::LoopBase>(node))
Expand Down

0 comments on commit 7aa0810

Please sign in to comment.