Skip to content

Commit 037a72d

Browse files
committed
Merge pull request opencv#18517 from alalek:backport_18031
2 parents 1ef4b7a + aa11f7d commit 037a72d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

modules/dnn/src/dnn.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2113,7 +2113,9 @@ struct Net::Impl : public detail::NetImplBase
21132113

21142114
auto ieInpNode = inputNodes[i].dynamicCast<InfEngineNgraphNode>();
21152115
CV_Assert(oid < ieInpNode->node->get_output_size());
2116-
#if INF_ENGINE_VER_MAJOR_GT(INF_ENGINE_RELEASE_2020_3)
2116+
#if INF_ENGINE_VER_MAJOR_GT(INF_ENGINE_RELEASE_2020_4)
2117+
inputNodes[i] = Ptr<BackendNode>(new InfEngineNgraphNode(ieInpNode->node));
2118+
#elif INF_ENGINE_VER_MAJOR_GT(INF_ENGINE_RELEASE_2020_3)
21172119
inputNodes[i] = Ptr<BackendNode>(new InfEngineNgraphNode(ieInpNode->node->get_output_as_single_output_node(oid)));
21182120
#else
21192121
inputNodes[i] = Ptr<BackendNode>(new InfEngineNgraphNode(ieInpNode->node->get_output_as_single_output_node(oid, false)));

0 commit comments

Comments
 (0)