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

Function FindConstTensor

core/lib/static_graph.cpp:161–177  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

159}
160
161StaticTensor* FindConstTensor(StaticGraph* graph, const std::string& tensor_name)
162{
163 auto ir = graph->const_tensor_map.begin();
164 auto end = graph->const_tensor_map.end();
165
166 while(ir != end)
167 {
168 StaticTensor* tensor = ir->second.get();
169
170 if(tensor->name == tensor_name)
171 return tensor;
172
173 ir++;
174 }
175
176 return nullptr;
177}
178
179void AddGraphInputNode(StaticGraph* graph, StaticNode* node)
180{

Callers 2

CreateInputNodeMethod · 0.85
CreateInputNodeMethod · 0.85

Calls 3

beginMethod · 0.80
endMethod · 0.80
getMethod · 0.80

Tested by

no test coverage detected