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

Method GetInputTensorInfo

src/armnn/LoadedNetwork.cpp:626–642  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

624}
625
626TensorInfo LoadedNetwork::GetInputTensorInfo(LayerBindingId layerId) const
627{
628 for (auto&& inputLayer : m_OptimizedNetwork->pOptimizedNetworkImpl->GetGraph().GetInputLayers())
629 {
630 if (inputLayer->GetNumOutputSlots() != 1)
631 {
632 throw armnn::GraphValidationException("Input layer should have exactly 1 output slot");
633 }
634
635 if (inputLayer->GetBindingId() == layerId)
636 {
637 return inputLayer->GetOutputSlot(0).GetTensorInfo();
638 }
639 }
640
641 throw InvalidArgumentException(fmt::format("No input layer is associated with id {}", layerId));
642}
643
644TensorInfo LoadedNetwork::GetOutputTensorInfo(LayerBindingId layerId) const
645{

Callers

nothing calls this directly

Calls 7

formatEnum · 0.85
GetInputLayersMethod · 0.80
GetOutputSlotMethod · 0.80
GetNumOutputSlotsMethod · 0.45
GetBindingIdMethod · 0.45

Tested by

no test coverage detected