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

Method FindNode

core/lib/graph.cpp:60–79  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

58}
59
60Node* Graph::FindNode(const std::string& node_name)
61{
62 int len = node_name.size();
63
64 for(unsigned int i = 0; i < seq_nodes.size(); i++)
65 {
66 Node* node = seq_nodes[i];
67 const std::string& target_name = node->GetName();
68
69 int start = target_name.size() - len;
70
71 if(start)
72 continue;
73
74 if(target_name == node_name)
75 return node;
76 }
77
78 return nullptr;
79}
80
81bool Graph::AddInputNode(const std::string& node_name)
82{

Callers 8

set_graph_input_nodeFunction · 0.45
set_graph_output_nodeFunction · 0.45
create_graph_nodeFunction · 0.45
get_graph_nodeFunction · 0.45
mainFunction · 0.45
mainFunction · 0.45
OnGetNodeDumpAttrMethod · 0.45
OnSetNodeDumpAttrMethod · 0.45

Calls 2

GetNameMethod · 0.80
sizeMethod · 0.45

Tested by 2

mainFunction · 0.36
mainFunction · 0.36