aboutsummaryrefslogtreecommitdiff
path: root/src/armnn/layers/LayerWithParameters.hpp
diff options
context:
space:
mode:
authorDerek Lamberti <derek.lamberti@arm.com>2018-09-18 16:02:25 +0100
committerMatthew Bentham <matthew.bentham@arm.com>2018-10-10 16:16:56 +0100
commit0cff16365b2ebb4d02929b86a304b91df19a985c (patch)
tree98e9cb30daedd0ff8e83abc85cba2991a67732f3 /src/armnn/layers/LayerWithParameters.hpp
parent58f3919fb34a1aae42857c53360f1d569f5d31f9 (diff)
downloadarmnn-0cff16365b2ebb4d02929b86a304b91df19a985c.tar.gz
IVGCVSW-1883 Add support for different memory layouts
Change-Id: I6e9973bf25acad980fb4e96af8080ac829db0d28
Diffstat (limited to 'src/armnn/layers/LayerWithParameters.hpp')
-rw-r--r--src/armnn/layers/LayerWithParameters.hpp13
1 files changed, 12 insertions, 1 deletions
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.