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

Method GetOutputNodeTensor

core/lib/graph_executor.cpp:424–435  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

422}
423
424Tensor* GraphExecutor::GetOutputNodeTensor(unsigned int node_idx, unsigned int tensor_idx)
425{
426 if(node_idx >= graph_->output_nodes.size())
427 return nullptr;
428
429 Node* node = graph_->output_nodes[node_idx];
430
431 if(tensor_idx >= node->GetOutputNum())
432 return nullptr;
433
434 return node->GetOutputTensor(tensor_idx);
435}
436
437bool GraphExecutor::SetTensorBuffer(Tensor* tensor, void* input_data, int data_size)
438{

Callers

nothing calls this directly

Calls 3

sizeMethod · 0.45
GetOutputNumMethod · 0.45
GetOutputTensorMethod · 0.45

Tested by

no test coverage detected