From 964e955d8962590d3ccbaba9784962e895ca656f Mon Sep 17 00:00:00 2001 From: Nattapat Chaimanowong Date: Tue, 26 Mar 2019 11:03:26 +0000 Subject: IVGCVSW-2881 Remove DebugDescriptor * Also update Debug layer to use layer guid information Change-Id: I9ec1f639299c3f855b670ff031a0e88d685cfc6b Signed-off-by: Nattapat Chaimanowong --- src/armnn/layers/DebugLayer.cpp | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) (limited to 'src/armnn/layers/DebugLayer.cpp') diff --git a/src/armnn/layers/DebugLayer.cpp b/src/armnn/layers/DebugLayer.cpp index 6fccca677f..34912731cb 100644 --- a/src/armnn/layers/DebugLayer.cpp +++ b/src/armnn/layers/DebugLayer.cpp @@ -12,23 +12,26 @@ namespace armnn { -DebugLayer::DebugLayer(const DebugDescriptor& param, const char* name) - : LayerWithParameters(1, 1, LayerType::Debug, param, name) +DebugLayer::DebugLayer(const char* name) + : Layer(1, 1, LayerType::Debug, name) {} std::unique_ptr DebugLayer::CreateWorkload(const Graph& graph, const IWorkloadFactory& factory) const { + const Layer& prevLayer = GetInputSlot(0).GetConnectedOutputSlot()->GetOwningLayer(); + DebugQueueDescriptor descriptor; - descriptor.m_Parameters.m_LayerName = m_Param.m_LayerName; - descriptor.m_Parameters.m_SlotIndex = m_Param.m_SlotIndex; + descriptor.m_Guid = prevLayer.GetGuid(); + descriptor.m_LayerName = prevLayer.GetNameStr(); + descriptor.m_SlotIndex = GetInputSlot(0).GetConnectedOutputSlot()->CalculateIndexOnOwner(); return factory.CreateDebug(descriptor, PrepInfoAndDesc(descriptor, graph)); } DebugLayer* DebugLayer::Clone(Graph& graph) const { - return CloneBase(graph, m_Param, GetName()); + return CloneBase(graph, GetName()); } void DebugLayer::ValidateTensorShapesFromInputs() -- cgit v1.2.1