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

Method GetAttr

executor/lib/graph_task.cpp:583–600  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

581}
582
583bool GraphTask::GetAttr(const char* name, void* val, int size)
584{
585 if(!strncmp(name, ATTR_GRAPH_PERF_STAT, strlen(ATTR_GRAPH_PERF_STAT)))
586 {
587 return GetGraphPerfAttr(name, val, size);
588 }
589
590 // loop all subtask
591 for(unsigned int i = 0; i < sub_task_list_.size(); i++)
592 {
593 auto sub_task = sub_task_list_[i];
594
595 if(sub_task->GetAttr(name, val, size))
596 return true;
597 }
598
599 return false;
600}
601
602/**************Subgraph Task ***************/
603

Callers 15

PrepareOneTensorFunction · 0.45
BindOpsFunction · 0.45
GetGraphPerfAttrMethod · 0.45
GetSubgraphTaskMethod · 0.45
InitMethod · 0.45
OnOutputNodeDoneMethod · 0.45
GetNodeInputWaitMaskMethod · 0.45
get_tensor_memptrFunction · 0.45
PartitionGraphMethod · 0.45
AllocateMethod · 0.45

Calls 2

sizeMethod · 0.45
GetGraphAttrMethod · 0.45

Tested by

no test coverage detected