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

Method GetInputTensor

core/lib/graph.cpp:949–965  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

947}
948
949Tensor* Graph::GetInputTensor(const std::string& name)
950{
951 for(unsigned int i = 0; i < input_nodes.size(); i++)
952 {
953 Node* node = input_nodes[i];
954
955 for(unsigned int j = 0; j < node->GetInputNum(); j++)
956 {
957 Tensor* tensor = node->GetInputTensor(j);
958
959 if(tensor->GetName() == name)
960 return tensor;
961 }
962 }
963
964 return nullptr;
965}
966
967Tensor* Graph::GetOutputTensor(const std::string& name)
968{

Callers 15

graph_executor.cppFile · 0.45
InferShapeMethod · 0.45
check_graph_inputsFunction · 0.45
do_merge_graphFunction · 0.45
get_node_input_tensorFunction · 0.45
ReplaceMethod · 0.45
SaveTmNodeMethod · 0.45
SaveTmNodeMethod · 0.45
parse_nodeFunction · 0.45
RunMethod · 0.45
CalculateMemBlocksFunction · 0.45
AllocateMemMethod · 0.45

Calls 3

GetNameMethod · 0.80
sizeMethod · 0.45
GetInputNumMethod · 0.45

Tested by

no test coverage detected