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

Method ParseL2Normalization

src/armnnDeserializer/Deserializer.cpp:1938–1962  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1936}
1937
1938void IDeserializer::DeserializerImpl::ParseL2Normalization(GraphPtr graph, unsigned int layerIndex)
1939{
1940 CHECK_LAYERS(graph, 0, layerIndex);
1941
1942 auto inputs = GetInputs(graph, layerIndex);
1943 CHECK_VALID_SIZE(inputs.size(), 1);
1944
1945 auto outputs = GetOutputs(graph, layerIndex);
1946 CHECK_VALID_SIZE(outputs.size(), 1);
1947 auto outputInfo = ToTensorInfo(outputs[0]);
1948
1949 auto flatBufferLayer = graph->layers()->Get(layerIndex)->layer_as_L2NormalizationLayer();
1950 auto flatBufferDescriptor = flatBufferLayer->descriptor();
1951
1952 auto layerName = GetLayerName(graph, layerIndex);
1953 armnn::L2NormalizationDescriptor descriptor;
1954 descriptor.m_DataLayout = ToDataLayout(flatBufferDescriptor->dataLayout());
1955 descriptor.m_Eps = flatBufferDescriptor->eps();
1956
1957 IConnectableLayer* layer = m_Network->AddL2NormalizationLayer(descriptor, layerName.c_str());
1958 layer->GetOutputSlot(0).SetTensorInfo(outputInfo);
1959
1960 RegisterInputSlots(graph, layerIndex, layer);
1961 RegisterOutputSlots(graph, layerIndex, layer);
1962}
1963
1964void IDeserializer::DeserializerImpl::ParseLogicalBinary(GraphPtr graph, unsigned int layerIndex)
1965{

Callers

nothing calls this directly

Calls 9

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

Tested by

no test coverage detected