From e46659669b753411421a6a552b32b9f1d27b8b2e Mon Sep 17 00:00:00 2001 From: Jim Flynn Date: Mon, 31 Jan 2022 16:08:53 +0000 Subject: IVGCVSW-6639 Add GetParameters to IConnectableLayer Change-Id: Id55a460ecb510f5b30235b03f54390f2c8188fc2 Signed-off-by: Jim Flynn --- src/armnn/Layer.hpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/armnn/Layer.hpp') diff --git a/src/armnn/Layer.hpp b/src/armnn/Layer.hpp index f2ea6cb26d..ecfa1d9a5b 100644 --- a/src/armnn/Layer.hpp +++ b/src/armnn/Layer.hpp @@ -351,6 +351,8 @@ public: m_AdditionalInfoObject = additionalInfo; } + virtual const BaseDescriptor& GetParameters() const override { return m_NullDescriptor; } + protected: // Graph needs access to the virtual destructor. friend class Graph; @@ -427,6 +429,10 @@ private: std::list m_RelatedLayerNames; + /// returned by layers which have no parameters associated with them. + /// has to be a member as it is returned as a const reference + /// declared static so that there is only ever one of them in memory + static NullDescriptor m_NullDescriptor; }; // A layer user-provided data can be bound to (e.g. inputs, outputs). -- cgit v1.2.1