diff --git a/src/common/snippets/src/lowered/pass/validate.cpp b/src/common/snippets/src/lowered/pass/validate.cpp index 5e6f31ae3f80ea..3ab2d91164dc0e 100644 --- a/src/common/snippets/src/lowered/pass/validate.cpp +++ b/src/common/snippets/src/lowered/pass/validate.cpp @@ -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(node) || - ov::is_type(node), "Incorrect count of output port descriptors!"); + bool bypass_output_size_check = +#ifdef SNIPPETS_DEBUG_CAPS + ov::is_type(node) || ov::is_type(node) || +#endif // SNIPPETS_DEBUG_CAPS + ov::is_type(node) || ov::is_type(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(node))