| 1654 | } |
| 1655 | |
| 1656 | void IDeserializer::DeserializerImpl::ParseDepthToSpace(GraphPtr graph, unsigned int layerIndex) |
| 1657 | { |
| 1658 | CHECK_LAYERS(graph, 0, layerIndex); |
| 1659 | |
| 1660 | auto inputs = GetInputs(graph, layerIndex); |
| 1661 | CHECK_VALID_SIZE(inputs.size(), 1); |
| 1662 | |
| 1663 | auto outputs = GetOutputs(graph, layerIndex); |
| 1664 | CHECK_VALID_SIZE(outputs.size(), 1); |
| 1665 | |
| 1666 | auto fbDescriptor = graph->layers()->Get(layerIndex)->layer_as_DepthToSpaceLayer()->descriptor(); |
| 1667 | |
| 1668 | armnn::DepthToSpaceDescriptor descriptor; |
| 1669 | descriptor.m_BlockSize = fbDescriptor->blockSize(); |
| 1670 | descriptor.m_DataLayout = ToDataLayout(fbDescriptor->dataLayout()); |
| 1671 | |
| 1672 | auto layerName = GetLayerName(graph, layerIndex); |
| 1673 | IConnectableLayer* layer = m_Network->AddDepthToSpaceLayer(descriptor, layerName.c_str()); |
| 1674 | |
| 1675 | armnn::TensorInfo outputInfo = ToTensorInfo(outputs[0]); |
| 1676 | layer->GetOutputSlot(0).SetTensorInfo(outputInfo); |
| 1677 | |
| 1678 | RegisterInputSlots(graph, layerIndex, layer); |
| 1679 | RegisterOutputSlots(graph, layerIndex, layer); |
| 1680 | } |
| 1681 | |
| 1682 | void IDeserializer::DeserializerImpl::ParseDepthwiseConvolution2d(GraphPtr graph, unsigned int layerIndex) |
| 1683 | { |
nothing calls this directly
no test coverage detected