From 29883a152afb354377c079ca2688080545cebf99 Mon Sep 17 00:00:00 2001 From: Vladimir Dudnik Date: Thu, 17 Feb 2022 10:52:30 +0300 Subject: [PATCH] fix 79520 (#10449) --- samples/cpp/hello_reshape_ssd/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samples/cpp/hello_reshape_ssd/main.cpp b/samples/cpp/hello_reshape_ssd/main.cpp index 2ae7d457cc2..70646b03330 100644 --- a/samples/cpp/hello_reshape_ssd/main.cpp +++ b/samples/cpp/hello_reshape_ssd/main.cpp @@ -53,7 +53,7 @@ int main(int argc, char* argv[]) { // try to find it. ov::NodeVector ops = model->get_ops(); auto it = std::find_if(ops.begin(), ops.end(), [](std::shared_ptr node) { - return node->get_type_info() == ngraph::op::DetectionOutput::get_type_info_static(); + return node->get_type_info().name == ngraph::op::DetectionOutput::get_type_info_static().name; }); if (it == ops.end()) { throw std::logic_error("model does not contain DetectionOutput layer");