Removed get_output_as_single_output_node method
authorIlya Churaev <ilya.churaev@intel.com>
Tue, 4 Aug 2020 05:18:38 +0000 (08:18 +0300)
committerAlexander Alekhin <alexander.a.alekhin@gmail.com>
Mon, 5 Oct 2020 20:24:21 +0000 (20:24 +0000)
backported commit: 5fd3d36fe8b36fb9e39a192fedc9ffec2883efe1

modules/dnn/src/dnn.cpp

index 89477910612d8ca77673d4c8fcfb0126ba248fbe..f1bff3cee5a2808b7826a7d8cd979d58f720aea8 100644 (file)
@@ -2113,7 +2113,9 @@ struct Net::Impl : public detail::NetImplBase
 
                     auto ieInpNode = inputNodes[i].dynamicCast<InfEngineNgraphNode>();
                     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<BackendNode>(new InfEngineNgraphNode(ieInpNode->node));
+#elif INF_ENGINE_VER_MAJOR_GT(INF_ENGINE_RELEASE_2020_3)
                     inputNodes[i] = Ptr<BackendNode>(new InfEngineNgraphNode(ieInpNode->node->get_output_as_single_output_node(oid)));
 #else
                     inputNodes[i] = Ptr<BackendNode>(new InfEngineNgraphNode(ieInpNode->node->get_output_as_single_output_node(oid, false)));