From 5fd3d36fe8b36fb9e39a192fedc9ffec2883efe1 Mon Sep 17 00:00:00 2001 From: Ilya Churaev Date: Tue, 4 Aug 2020 08:18:38 +0300 Subject: [PATCH] Removed get_output_as_single_output_node method --- modules/dnn/src/dnn.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/modules/dnn/src/dnn.cpp b/modules/dnn/src/dnn.cpp index 3bff866bb8..797120ac47 100644 --- a/modules/dnn/src/dnn.cpp +++ b/modules/dnn/src/dnn.cpp @@ -2225,7 +2225,9 @@ struct Net::Impl : public detail::NetImplBase auto ieInpNode = inputNodes[i].dynamicCast(); CV_Assert(oid < ieInpNode->node->get_output_size()); -#if INF_ENGINE_VER_MAJOR_GT(INF_ENGINE_RELEASE_2020_3) +#if INF_ENGINE_VER_MAJOR_GT(INF_ENGINE_RELEASE_2020_4) + inputNodes[i] = Ptr(new InfEngineNgraphNode(ieInpNode->node)); +#elif INF_ENGINE_VER_MAJOR_GT(INF_ENGINE_RELEASE_2020_3) inputNodes[i] = Ptr(new InfEngineNgraphNode(ieInpNode->node->get_output_as_single_output_node(oid))); #else inputNodes[i] = Ptr(new InfEngineNgraphNode(ieInpNode->node->get_output_as_single_output_node(oid, false)));