| 1936 | } |
| 1937 | |
| 1938 | void 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 | |
| 1964 | void IDeserializer::DeserializerImpl::ParseLogicalBinary(GraphPtr graph, unsigned int layerIndex) |
| 1965 | { |
nothing calls this directly
no test coverage detected