OpenVINO™ is an open source toolkit for optimizing and deploying AI inference
C++ aicomputer-visiondeep-learningdeploy-aidiffusion-modelsgenerative-aigood-first-issueinferencellm-inferencenatural-language-processingnlpopenvinooptimize-aiperformance-boostrecommendation-systemspeech-recognitionstable-diffusiontransformersyolo
[core] fix bug in values_info::predicate (#26982)
Tingqian Lifefe9bd1ef9b
diff --git a/src/common/transformations/include/transformations/utils/gen_pattern.hpp b/src/common/transformations/include/transformations/utils/gen_pattern.hppindex 8efe2eb575d..21309e339c9 100644--- a/src/common/transformations/include/transformations/utils/gen_pattern.hpp+++ b/src/common/transformations/include/transformations/utils/gen_pattern.hpp@@ -136,6 +136,14 @@ struct values_info {if (all_type_pshape.empty())return true;auto index = value.get_index();+ if (index >= all_type_pshape.size()) {+ _VERBOSE_LOG("* mismatched vtype : value from output port ",+ index,+ ", but only ",+ all_type_pshape.size(),+ " ports are expected!");+ return false;+ }auto& item = all_type_pshape[index];if (!item.first.compatible(value.get_element_type()) || !item.second.compatible(value.get_partial_shape())) {_VERBOSE_LOG("* mismatched vtype between value & pattern : ",