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

Method ParseNormalization

src/armnnDeserializer/Deserializer.cpp:3043–3065  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3041}
3042
3043void IDeserializer::DeserializerImpl::ParseNormalization(GraphPtr graph, unsigned int layerIndex)
3044{
3045 CHECK_LAYERS(graph, 0, layerIndex);
3046
3047 auto normalizationDes = graph->layers()->Get(layerIndex)->layer_as_NormalizationLayer()->descriptor();
3048
3049 TensorRawPtrVector inputs = GetInputs(graph, layerIndex);
3050 CHECK_VALID_SIZE(inputs.size(), 1);
3051
3052 TensorRawPtrVector outputs = GetOutputs(graph, layerIndex);
3053 CHECK_VALID_SIZE(outputs.size(), 1);
3054
3055 auto outputInfo = ToTensorInfo(outputs[0]);
3056
3057 auto normalizationDescriptor = GetNormalizationDescriptor(normalizationDes, layerIndex);
3058 auto layerName = GetLayerName(graph, layerIndex);
3059
3060 IConnectableLayer* layer = m_Network->AddNormalizationLayer(normalizationDescriptor, layerName.c_str());
3061 layer->GetOutputSlot(0).SetTensorInfo(outputInfo);
3062
3063 RegisterInputSlots(graph, layerIndex, layer);
3064 RegisterOutputSlots(graph, layerIndex, layer);
3065}
3066
3067void IDeserializer::DeserializerImpl::ParseRsqrt(GraphPtr graph, unsigned int layerIndex)
3068{

Callers

nothing calls this directly

Calls 8

AddNormalizationLayerMethod · 0.80
GetOutputSlotMethod · 0.80
ToTensorInfoFunction · 0.70
GetLayerNameFunction · 0.50
GetMethod · 0.45
sizeMethod · 0.45
c_strMethod · 0.45
SetTensorInfoMethod · 0.45

Tested by

no test coverage detected