aboutsummaryrefslogtreecommitdiff
path: root/src/armnn/NetworkUtils.cpp
diff options
context:
space:
mode:
authorNattapat Chaimanowong <nattapat.chaimanowong@arm.com>2019-03-26 11:03:26 +0000
committernattapat.chaimanowong <nattapat.chaimanowong@arm.com>2019-03-26 17:15:21 +0000
commit964e955d8962590d3ccbaba9784962e895ca656f (patch)
tree802213a507152d23fec932dfc6405540b97b7ccf /src/armnn/NetworkUtils.cpp
parent44db7c36c8cf0fc608d3edc2ee0eb04428085218 (diff)
downloadarmnn-964e955d8962590d3ccbaba9784962e895ca656f.tar.gz
IVGCVSW-2881 Remove DebugDescriptor
* Also update Debug layer to use layer guid information Change-Id: I9ec1f639299c3f855b670ff031a0e88d685cfc6b Signed-off-by: Nattapat Chaimanowong <nattapat.chaimanowong@arm.com>
Diffstat (limited to 'src/armnn/NetworkUtils.cpp')
-rw-r--r--src/armnn/NetworkUtils.cpp7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/armnn/NetworkUtils.cpp b/src/armnn/NetworkUtils.cpp
index a7f89ff222..126b56b084 100644
--- a/src/armnn/NetworkUtils.cpp
+++ b/src/armnn/NetworkUtils.cpp
@@ -86,15 +86,12 @@ std::vector<DebugLayer*> InsertDebugLayerAfter(Graph& graph, Layer& layer)
debugLayers.reserve(layer.GetNumOutputSlots());
// Connect a DebugLayer to each output slot of the layer
- unsigned int outputSlotIndex = 0u;
for (auto&& outputSlot = layer.BeginOutputSlots(); outputSlot != layer.EndOutputSlots(); ++outputSlot)
{
- const std::string layerName(layer.GetName());
- const std::string debugName = std::string("DebugLayerAfter") + layerName;
+ const std::string debugName = std::string("DebugLayerAfter") + layer.GetNameStr();
- const DebugDescriptor descriptor(layerName, outputSlotIndex++);
DebugLayer* debugLayer =
- graph.InsertNewLayer<DebugLayer>(*outputSlot, descriptor, debugName.c_str());
+ graph.InsertNewLayer<DebugLayer>(*outputSlot, debugName.c_str());
// Sets output tensor info for the debug layer.
TensorInfo debugInfo = debugLayer->GetInputSlot(0).GetConnectedOutputSlot()->GetTensorInfo();