| 2070 | } |
| 2071 | } |
| 2072 | void IDeserializer::DeserializerImpl::ParseChannelShuffle(GraphPtr graph, unsigned int layerIndex) |
| 2073 | { |
| 2074 | CHECK_LAYERS(graph, 0, layerIndex); |
| 2075 | |
| 2076 | TensorRawPtrVector inputs = GetInputs(graph, layerIndex); |
| 2077 | CHECK_VALID_SIZE(inputs.size(), 1); |
| 2078 | |
| 2079 | TensorRawPtrVector outputs = GetOutputs(graph, layerIndex); |
| 2080 | CHECK_VALID_SIZE(outputs.size(), 1); |
| 2081 | |
| 2082 | armnn::ChannelShuffleDescriptor descriptor; |
| 2083 | descriptor.m_Axis = graph->layers()->Get(layerIndex)->layer_as_ChannelShuffleLayer()->descriptor()->axis(); |
| 2084 | descriptor.m_NumGroups = |
| 2085 | graph->layers()->Get(layerIndex)->layer_as_ChannelShuffleLayer()->descriptor()->numGroups(); |
| 2086 | |
| 2087 | auto layerName = GetLayerName(graph, layerIndex); |
| 2088 | IConnectableLayer* layer = m_Network->AddChannelShuffleLayer(descriptor, layerName.c_str()); |
| 2089 | |
| 2090 | armnn::TensorInfo outputTensorInfo = ToTensorInfo(outputs[0]); |
| 2091 | layer->GetOutputSlot(0).SetTensorInfo(outputTensorInfo); |
| 2092 | |
| 2093 | RegisterInputSlots(graph, layerIndex, layer); |
| 2094 | RegisterOutputSlots(graph, layerIndex, layer); |
| 2095 | } |
| 2096 | void IDeserializer::DeserializerImpl::ParseComparison(GraphPtr graph, unsigned int layerIndex) |
| 2097 | { |
| 2098 | CHECK_LAYERS(graph, 0, layerIndex); |
nothing calls this directly
no test coverage detected