| 3041 | } |
| 3042 | |
| 3043 | void 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 | |
| 3067 | void IDeserializer::DeserializerImpl::ParseRsqrt(GraphPtr graph, unsigned int layerIndex) |
| 3068 | { |
nothing calls this directly
no test coverage detected