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

Method SerializeDepthToSpaceLayer

src/armnnSerializer/Serializer.cpp:461–475  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

459}
460
461void SerializerStrategy::SerializeDepthToSpaceLayer(const armnn::IConnectableLayer* layer,
462 const armnn::DepthToSpaceDescriptor& descriptor,
463 const char* name)
464{
465 IgnoreUnused(name);
466
467 auto fbBaseLayer = CreateLayerBase(layer, serializer::LayerType::LayerType_DepthToSpace);
468 auto fbDescriptor = CreateDepthToSpaceDescriptor(m_flatBufferBuilder,
469 descriptor.m_BlockSize,
470 GetFlatBufferDataLayout(descriptor.m_DataLayout));
471
472 auto fbLayer = serializer::CreateDepthToSpaceLayer(m_flatBufferBuilder, fbBaseLayer, fbDescriptor);
473
474 CreateAnyLayer(fbLayer.o, serializer::Layer::Layer_DepthToSpaceLayer);
475}
476
477void SerializerStrategy::SerializeDepthwiseConvolution2dLayer(const armnn::IConnectableLayer* layer,
478 const armnn::DepthwiseConvolution2dDescriptor& descriptor,

Callers

nothing calls this directly

Calls 2

GetFlatBufferDataLayoutFunction · 0.85
IgnoreUnusedFunction · 0.50

Tested by

no test coverage detected