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

Method SetAttr

executor/lib/graph_task.cpp:564–581  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

562}
563
564bool GraphTask::SetAttr(const char* name, const void* val, int size)
565{
566 if(!strncmp(name, ATTR_GRAPH_PERF_STAT, strlen(ATTR_GRAPH_PERF_STAT)))
567 {
568 return SetGraphPerfAttr(name, val, size);
569 }
570
571 // loop all subtask
572 for(unsigned int i = 0; i < sub_task_list_.size(); i++)
573 {
574 auto sub_task = sub_task_list_[i];
575
576 if(sub_task->SetAttr(name, val, size))
577 return true;
578 }
579
580 return false;
581}
582
583bool GraphTask::GetAttr(const char* name, void* val, int size)
584{

Callers 15

Weight_BnFunction · 0.45
GraphFuseConvBNFunction · 0.45
SetGraphPerfAttrMethod · 0.45
SetSubgraphTaskMethod · 0.45
InitMethod · 0.45
SetNodeInputWaitMaskMethod · 0.45
set_tensor_memFunction · 0.45
SameGraphMethod · 0.45
PartitionGraphMethod · 0.45
AllocateMethod · 0.45
DevPrerunMethod · 0.45

Calls 2

sizeMethod · 0.45
SetGraphAttrMethod · 0.45

Tested by

no test coverage detected