From 3a40ea5e1efd61ebb21a174ef7bf9adecac8ade9 Mon Sep 17 00:00:00 2001 From: Jim Flynn Date: Thu, 8 Oct 2020 11:42:30 +0100 Subject: IVGCVSW-5363 Add Unmap layer and Unmap workload Signed-off-by: Narumol Prangnawarat Signed-off-by: Jim Flynn Change-Id: Ie5ecfa67e4763d0c058905592fe2e2fd7315f85c --- .../test/IsLayerSupportedTestImpl.hpp | 27 +++++++++++++++++++++- 1 file changed, 26 insertions(+), 1 deletion(-) (limited to 'src/backends/backendsCommon/test') diff --git a/src/backends/backendsCommon/test/IsLayerSupportedTestImpl.hpp b/src/backends/backendsCommon/test/IsLayerSupportedTestImpl.hpp index 1078c2a8d7..a8465b45f6 100644 --- a/src/backends/backendsCommon/test/IsLayerSupportedTestImpl.hpp +++ b/src/backends/backendsCommon/test/IsLayerSupportedTestImpl.hpp @@ -7,6 +7,7 @@ #include #include +#include #include #include @@ -214,6 +215,22 @@ struct DummyLayer armnn::SplitterLayer* m_Layer; }; +template<> +struct DummyLayer +{ + DummyLayer() + { + m_Layer = dummyGraph.AddLayer(""); + } + + ~DummyLayer() + { + dummyGraph.EraseLayer(m_Layer); + } + + armnn::UnmapLayer* m_Layer; +}; + template struct DummyConvolutionLayer { @@ -628,7 +645,6 @@ DECLARE_LAYER_POLICY_2_PARAM(Pooling2d) DECLARE_LAYER_POLICY_2_PARAM(PreCompiled) DECLARE_LAYER_POLICY_1_PARAM(Prelu) - DECLARE_LAYER_POLICY_2_PARAM(QLstm) DECLARE_LAYER_POLICY_1_PARAM(QuantizedLstm) @@ -665,6 +681,8 @@ DECLARE_LAYER_POLICY_2_PARAM(Transpose) DECLARE_LAYER_POLICY_2_PARAM(TransposeConvolution2d) +DECLARE_LAYER_POLICY_MAP_PARAM(Unmap, void) + // Generic implementation to get the number of input slots for a given layer type; template @@ -798,6 +816,13 @@ bool IsLayerSupportedTest(FactoryType *factory, Tag) return true; } +template +bool IsLayerSupportedTest(FactoryType *factory, Tag) +{ + IgnoreUnused(factory); + return true; +} + // Helper function to compute the next type in the LayerType enum. constexpr armnn::LayerType NextType(armnn::LayerType type) { -- cgit v1.2.1