MCPcopy Create free account
hub / github.com/ARM-software/armnn / SerializeL2NormalizationLayer

Method SerializeL2NormalizationLayer

src/armnnSerializer/Serializer.cpp:657–676  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

655}
656
657void SerializerStrategy::SerializeL2NormalizationLayer(const armnn::IConnectableLayer* layer,
658 const armnn::L2NormalizationDescriptor& l2NormalizationDescriptor,
659 const char* name)
660{
661 IgnoreUnused(name);
662
663 // Create FlatBuffer BaseLayer
664 auto fbBaseLayer = CreateLayerBase(layer, serializer::LayerType::LayerType_L2Normalization);
665
666 // Create the FlatBuffer L2Normalization Descriptor
667 auto fbDescriptor = serializer::CreateL2NormalizationDescriptor(
668 m_flatBufferBuilder,
669 GetFlatBufferDataLayout(l2NormalizationDescriptor.m_DataLayout),
670 l2NormalizationDescriptor.m_Eps);
671
672 // Create FlatBuffer layer
673 auto fbLayer = serializer::CreateL2NormalizationLayer(m_flatBufferBuilder, fbBaseLayer, fbDescriptor);
674
675 CreateAnyLayer(fbLayer.o, serializer::Layer::Layer_L2NormalizationLayer);
676}
677
678void SerializerStrategy::SerializeLogicalBinaryLayer(const armnn::IConnectableLayer* layer,
679 const armnn::LogicalBinaryDescriptor& descriptor,

Callers

nothing calls this directly

Calls 2

GetFlatBufferDataLayoutFunction · 0.85
IgnoreUnusedFunction · 0.50

Tested by

no test coverage detected