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

Function GetFirstLayerWithName

src/armnnTestUtils/GraphUtils.cpp:22–32  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

20}
21
22armnn::Layer* GetFirstLayerWithName(armnn::Graph& graph, const std::string& name)
23{
24 for (auto&& layer : graph)
25 {
26 if (layer->GetNameStr() == name)
27 {
28 return layer;
29 }
30 }
31 return nullptr;
32}
33
34bool CheckNumberOfInputSlot(armnn::Layer* layer, unsigned int num)
35{

Calls

no outgoing calls