From 1da48beeec8af53c1540e4571f5c06b3f771ff19 Mon Sep 17 00:00:00 2001 From: Alexander Alekhin Date: Sat, 5 Feb 2022 16:16:45 +0000 Subject: [PATCH] dnn(ngraph): fix output names --- modules/dnn/src/dnn.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/modules/dnn/src/dnn.cpp b/modules/dnn/src/dnn.cpp index 82f814131e..2e2112064e 100644 --- a/modules/dnn/src/dnn.cpp +++ b/modules/dnn/src/dnn.cpp @@ -2235,12 +2235,15 @@ struct Net::Impl : public detail::NetImplBase { CV_LOG_DEBUG(NULL, "DNN/IE: wrap layer " << ld.name << "@" << ld.type << " - outputs: " << ld.outputBlobsWrappers.size()); node = layer->initNgraph(ld.inputBlobsWrappers, inputNodes); - // FIXIT doesn't work with multiple outputs (set name is applied to the same node) +#if 0 // FIXIT doesn't work with multiple outputs (set name is applied to the same node) for (int i = 0; i < ld.outputBlobsWrappers.size(); ++i) { InferenceEngine::DataPtr dataPtr = ngraphDataNode(ld.outputBlobsWrappers[i]); node.dynamicCast()->setName(dataPtr->getName()); } +#else + node.dynamicCast()->setName(layer->name); +#endif } else {