MCPcopy Create free account
hub / github.com/OAID/Tengine / FindNode

Function FindNode

core/lib/static_graph.cpp:131–144  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

129}
130
131StaticNode* FindNode(StaticGraph* graph, const std::string& node_name)
132{
133 int node_number = graph->node_list.size();
134
135 for(int i = 0; i < node_number; i++)
136 {
137 StaticNode* node = graph->node_list[i].get();
138
139 if(node->name == node_name)
140 return node;
141 }
142
143 return nullptr;
144}
145
146StaticTensor* FindTensor(StaticGraph* graph, const std::string& tensor_name)
147{

Callers 7

GetNodeInputNumMethod · 0.85
graph_executor.cppFile · 0.85
GetNodeOutputNumMethod · 0.85
AddInputNodeMethod · 0.85
AddOutputNodeMethod · 0.85
SetupConnectionMethod · 0.85
RealCreateFromStaticMethod · 0.85

Calls 2

getMethod · 0.80
sizeMethod · 0.45

Tested by

no test coverage detected