From 0cff16365b2ebb4d02929b86a304b91df19a985c Mon Sep 17 00:00:00 2001 From: Derek Lamberti Date: Tue, 18 Sep 2018 16:02:25 +0100 Subject: IVGCVSW-1883 Add support for different memory layouts Change-Id: I6e9973bf25acad980fb4e96af8080ac829db0d28 --- src/armnn/layers/LayerWithParameters.hpp | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'src/armnn/layers') diff --git a/src/armnn/layers/LayerWithParameters.hpp b/src/armnn/layers/LayerWithParameters.hpp index 0cb970a2f1..6156d6b66c 100644 --- a/src/armnn/layers/LayerWithParameters.hpp +++ b/src/armnn/layers/LayerWithParameters.hpp @@ -28,13 +28,24 @@ protected: LayerWithParameters(unsigned int numInputSlots, unsigned int numOutputSlots, LayerType type, + DataLayout layout, const Parameters& param, const char* name) - : Layer(numInputSlots, numOutputSlots, type, name) + : Layer(numInputSlots, numOutputSlots, type, layout, name) , m_Param(param) { } + LayerWithParameters(unsigned int numInputSlots, + unsigned int numOutputSlots, + LayerType type, + const Parameters& param, + const char* name) + : Layer(numInputSlots, numOutputSlots, type, name) + , m_Param(param) + { + } + ~LayerWithParameters() = default; /// Helper function to reduce duplication in *Layer::CreateWorkload. -- cgit v1.2.1