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

Method AddOutputNode

core/lib/graph.cpp:101–119  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

99}
100
101bool Graph::AddOutputNode(const std::string& node_name)
102{
103 Node* node = FindNode(node_name);
104
105 if(node == nullptr)
106 return false;
107
108 // check to avoid replicate node
109
110 for(unsigned int i = 0; i < output_nodes.size(); i++)
111 {
112 if(node == output_nodes[i])
113 return true;
114 }
115
116 output_nodes.push_back(node);
117
118 return true;
119}
120
121Tensor* Graph::FindTensor(const std::string& tensor_name)
122{

Callers 3

SetGraphOutputNodeMethod · 0.45
set_graph_output_nodeFunction · 0.45
mainFunction · 0.45

Calls 2

FindNodeFunction · 0.85
sizeMethod · 0.45

Tested by 1

mainFunction · 0.36