Exclude Input layer from list of outputs for IE networks

pull/13376/head
Dmitry Kurtaev 6 years ago
parent fe459c82e5
commit 3868cb44f1
  1. 2
      modules/dnn/src/op_inf_engine.cpp

@ -418,6 +418,8 @@ void InfEngineBackendNet::init(int targetId)
InferenceEngine::OutputsDataMap unconnectedOuts; InferenceEngine::OutputsDataMap unconnectedOuts;
for (const auto& l : layers) for (const auto& l : layers)
{ {
if (l->type == "Input")
continue;
// Add all outputs. // Add all outputs.
for (const InferenceEngine::DataPtr& out : l->outData) for (const InferenceEngine::DataPtr& out : l->outData)
{ {

Loading…
Cancel
Save