mirror of
https://github.com/opencv/opencv.git
synced 2025-06-13 21:23:31 +08:00
Fix ENet test with OpenVINO 2020.2
This commit is contained in:
parent
396f43d674
commit
a448d3a6aa
@ -2100,7 +2100,11 @@ struct Net::Impl
|
|||||||
|
|
||||||
auto ieInpNode = inputNodes[i].dynamicCast<InfEngineNgraphNode>();
|
auto ieInpNode = inputNodes[i].dynamicCast<InfEngineNgraphNode>();
|
||||||
CV_Assert(oid < ieInpNode->node->get_output_size());
|
CV_Assert(oid < ieInpNode->node->get_output_size());
|
||||||
|
#if INF_ENGINE_VER_MAJOR_GT(2020020000)
|
||||||
|
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)));
|
inputNodes[i] = Ptr<BackendNode>(new InfEngineNgraphNode(ieInpNode->node->get_output_as_single_output_node(oid, false)));
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
if (layer->supportBackend(preferableBackend))
|
if (layer->supportBackend(preferableBackend))
|
||||||
|
Loading…
Reference in New Issue
Block a user