diff --git a/modules/dnn/src/dnn.cpp b/modules/dnn/src/dnn.cpp index 0f8dacad35..f33bbbd2ac 100644 --- a/modules/dnn/src/dnn.cpp +++ b/modules/dnn/src/dnn.cpp @@ -2100,7 +2100,11 @@ struct Net::Impl auto ieInpNode = inputNodes[i].dynamicCast(); CV_Assert(oid < ieInpNode->node->get_output_size()); +#if INF_ENGINE_VER_MAJOR_GT(2020020000) + 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))); +#endif } if (layer->supportBackend(preferableBackend))