diff options
author | surmeh01 <surabhi.mehta@arm.com> | 2018-03-29 16:29:27 +0100 |
---|---|---|
committer | surmeh01 <surabhi.mehta@arm.com> | 2018-03-29 16:29:27 +0100 |
commit | bceff2fb3fc68bb0aa88b886900c34b77340c826 (patch) | |
tree | d867d3e090d58d3012dfbbac456e9ea8c7f789bc /src/armnn/Layers.hpp | |
parent | 4fcda0101ec3d110c1d6d7bee5c83416b645528a (diff) | |
download | armnn-bceff2fb3fc68bb0aa88b886900c34b77340c826.tar.gz |
Release 18.03
Diffstat (limited to 'src/armnn/Layers.hpp')
-rw-r--r-- | src/armnn/Layers.hpp | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/armnn/Layers.hpp b/src/armnn/Layers.hpp index 5a1e3ca063..cb460e125f 100644 --- a/src/armnn/Layers.hpp +++ b/src/armnn/Layers.hpp @@ -22,10 +22,17 @@ template <typename Parameters> class LayerWithParameters : public Layer { public: - typedef Parameters DescriptorType; + using DescriptorType = Parameters; const Parameters& GetParameters() const { return m_Param; } + /// Helper to serialize the layer parameters to string + /// (currently used in DotSerializer and company) + void SerializeLayerParameters(ParameterStringifyFunction & fn) const + { + StringifyLayerParameters<Parameters>::Serialize(fn, m_Param); + } + protected: LayerWithParameters(unsigned int numInputSlots, unsigned int numOutputSlots, |