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

Method OnSetGraphPerfAttr

driver/cpu/cpu_driver.cpp:521–534  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

519}
520
521bool CPUDriver::OnSetGraphPerfAttr(DevContext* context, Subgraph* graph, const char* name, const void* buf, int size)
522{
523 if(size != sizeof(GraphPerfMsg))
524 {
525 set_tengine_errno(EINVAL);
526 return false;
527 }
528
529 const GraphPerfMsg* msg = ( const GraphPerfMsg* )(buf);
530
531 CPUDevice* dev = context->dev;
532
533 return dev->SetGraphPerfStat(graph, msg->action);
534}
535
536/************************************/
537

Callers

nothing calls this directly

Calls 2

set_tengine_errnoFunction · 0.85
SetGraphPerfStatMethod · 0.45

Tested by

no test coverage detected