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

Method GetInputNodeTensor

core/lib/graph_executor.cpp:411–422  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

409}
410
411Tensor* GraphExecutor::GetInputNodeTensor(unsigned int node_idx, unsigned int tensor_idx)
412{
413 if(node_idx >= graph_->input_nodes.size())
414 return nullptr;
415
416 Node* node = graph_->input_nodes[node_idx];
417
418 if(tensor_idx >= node->GetOutputNum())
419 return nullptr;
420
421 return node->GetOutputTensor(tensor_idx);
422}
423
424Tensor* GraphExecutor::GetOutputNodeTensor(unsigned int node_idx, unsigned int tensor_idx)
425{

Callers 1

mainFunction · 0.80

Calls 3

sizeMethod · 0.45
GetOutputNumMethod · 0.45
GetOutputTensorMethod · 0.45

Tested by 1

mainFunction · 0.64