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

Method ParseChannelShuffle

src/armnnDeserializer/Deserializer.cpp:2072–2095  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2070 }
2071}
2072void 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}
2096void IDeserializer::DeserializerImpl::ParseComparison(GraphPtr graph, unsigned int layerIndex)
2097{
2098 CHECK_LAYERS(graph, 0, layerIndex);

Callers

nothing calls this directly

Calls 8

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