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

Function FindTensor

core/lib/static_graph.cpp:146–159  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

144}
145
146StaticTensor* FindTensor(StaticGraph* graph, const std::string& tensor_name)
147{
148 int tensor_number = graph->tensor_list.size();
149
150 for(int i = 0; i < tensor_number; i++)
151 {
152 StaticTensor* tensor = graph->tensor_list[i].get();
153
154 if(tensor->name == tensor_name)
155 return tensor;
156 }
157
158 return nullptr;
159}
160
161StaticTensor* FindConstTensor(StaticGraph* graph, const std::string& tensor_name)
162{

Callers 15

RealCreateFromStaticMethod · 0.85
LoadNodeMethod · 0.85
LoadNodeMethod · 0.85
LoadGemmFunction · 0.85
LoadNodeMethod · 0.85
LoadOnnxConvolutionOpFunction · 0.85
LoadOnnxGemmFunction · 0.85
LoadOnnxInterpFunction · 0.85
LoadOnnxReshapeFunction · 0.85
LoadConv2DFunction · 0.85
LoadShortCutFunction · 0.85
LoadMaxPoolingFunction · 0.85

Calls 2

getMethod · 0.80
sizeMethod · 0.45

Tested by

no test coverage detected