aboutsummaryrefslogtreecommitdiff
path: root/src/armnn/layers
diff options
context:
space:
mode:
authorNattapat Chaimanowong <nattapat.chaimanowong@arm.com>2018-12-05 15:17:18 +0000
committerLes Bell <les.bell@arm.com>2018-12-06 08:36:56 +0000
commitac5aa1faef759e704d369e8164ea91c6d7049946 (patch)
tree4202198355c149afdaa72e20e3a299e8b8974256 /src/armnn/layers
parent8174f3629d4b0dc0af7a75d2a201d756bc9e9d5b (diff)
downloadarmnn-ac5aa1faef759e704d369e8164ea91c6d7049946.tar.gz
IVGCVSW-2315 Add descriptor for Debug
Change-Id: I6b26c681989ef815752186f027a245ef8da7aea2
Diffstat (limited to 'src/armnn/layers')
-rw-r--r--src/armnn/layers/DebugLayer.cpp7
-rw-r--r--src/armnn/layers/DebugLayer.hpp6
2 files changed, 8 insertions, 5 deletions
diff --git a/src/armnn/layers/DebugLayer.cpp b/src/armnn/layers/DebugLayer.cpp
index c407643742..e83b17ee64 100644
--- a/src/armnn/layers/DebugLayer.cpp
+++ b/src/armnn/layers/DebugLayer.cpp
@@ -12,20 +12,23 @@
namespace armnn
{
-DebugLayer::DebugLayer(const char* name) : Layer(1, 1, LayerType::Debug, name)
+DebugLayer::DebugLayer(const DebugDescriptor& param, const char* name)
+ : LayerWithParameters(1, 1, LayerType::Debug, param, name)
{}
std::unique_ptr<IWorkload> DebugLayer::CreateWorkload(const Graph& graph,
const IWorkloadFactory& factory) const
{
DebugQueueDescriptor descriptor;
+ descriptor.m_Parameters.m_LayerName = m_Param.m_LayerName;
+ descriptor.m_Parameters.m_SlotIndex = m_Param.m_SlotIndex;
return factory.CreateDebug(descriptor, PrepInfoAndDesc(descriptor, graph));
}
DebugLayer* DebugLayer::Clone(Graph& graph) const
{
- return CloneBase<DebugLayer>(graph, GetName());
+ return CloneBase<DebugLayer>(graph, m_Param, GetName());
}
void DebugLayer::ValidateTensorShapesFromInputs()
diff --git a/src/armnn/layers/DebugLayer.hpp b/src/armnn/layers/DebugLayer.hpp
index 39ef9c7ae0..6aaa271807 100644
--- a/src/armnn/layers/DebugLayer.hpp
+++ b/src/armnn/layers/DebugLayer.hpp
@@ -4,12 +4,12 @@
//
#pragma once
-#include <Layer.hpp>
+#include "LayerWithParameters.hpp"
namespace armnn
{
-class DebugLayer : public Layer
+class DebugLayer : public LayerWithParameters<DebugDescriptor>
{
public:
virtual std::unique_ptr<IWorkload> CreateWorkload(const Graph& graph,
@@ -20,7 +20,7 @@ public:
void ValidateTensorShapesFromInputs() override;
protected:
- DebugLayer(const char* name);
+ DebugLayer(const DebugDescriptor& param, const char* name);
~DebugLayer() = default;
};