| 519 | } |
| 520 | |
| 521 | bool 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 |
nothing calls this directly
no test coverage detected