This commit is contained in:
Vladimir Dudnik
2022-02-17 10:52:30 +03:00
committed by GitHub
parent ff293f5560
commit 29883a152a

View File

@@ -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<ov::Node> 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");