Fix TupleUnpackInBodyReplacer transformation to run inside body (#20681)

This commit is contained in:
Maxim Vafin 2023-10-26 12:22:13 +02:00 committed by GitHub
parent 0d458f086d
commit bec011cf1d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -176,7 +176,7 @@ bool TupleUnpackInBodyReplacer::run_on_model(const std::shared_ptr<Model>& model
}
if (const auto multiSubGraph = ov::as_type_ptr<ov::op::util::MultiSubGraphOp>(op)) {
for (size_t i = 0; i < multiSubGraph->get_internal_subgraphs_size(); i++)
result = result || run_on_model(multiSubGraph->get_function(i));
result = run_on_model(multiSubGraph->get_function(i)) || result;
}
}