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

Method SerializeDepthwiseConvolution2dLayer

src/armnnSerializer/Serializer.cpp:477–501  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

475}
476
477void SerializerStrategy::SerializeDepthwiseConvolution2dLayer(const armnn::IConnectableLayer* layer,
478 const armnn::DepthwiseConvolution2dDescriptor& descriptor,
479 const char* name)
480{
481 IgnoreUnused(name);
482
483 auto fbBaseLayer = CreateLayerBase(layer, serializer::LayerType::LayerType_DepthwiseConvolution2d);
484 auto fbDescriptor = CreateDepthwiseConvolution2dDescriptor(m_flatBufferBuilder,
485 descriptor.m_PadLeft,
486 descriptor.m_PadRight,
487 descriptor.m_PadTop,
488 descriptor.m_PadBottom,
489 descriptor.m_StrideX,
490 descriptor.m_StrideY,
491 descriptor.m_DilationX,
492 descriptor.m_DilationY,
493 descriptor.m_BiasEnabled,
494 GetFlatBufferDataLayout(descriptor.m_DataLayout));
495
496 auto flatBufferLayer = CreateDepthwiseConvolution2dLayer(m_flatBufferBuilder,
497 fbBaseLayer,
498 fbDescriptor);
499
500 CreateAnyLayer(flatBufferLayer.o, serializer::Layer::Layer_DepthwiseConvolution2dLayer);
501}
502
503void SerializerStrategy::SerializeDequantizeLayer(const armnn::IConnectableLayer* layer,
504 const char* name)

Callers

nothing calls this directly

Calls 2

GetFlatBufferDataLayoutFunction · 0.85
IgnoreUnusedFunction · 0.50

Tested by

no test coverage detected