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

Method OnSubgraphDone

executor/lib/generic_dev_executor.cpp:378–394  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

376}
377
378void GenericDevExecutor::OnSubgraphDone(Subgraph* sub_graph, bool exec_success)
379{
380 SubgraphTask* task = SubgraphTask::GetSubgraphTask(sub_graph);
381
382 // move the task from RUN QUEUE to WAIT QUEUE
383 task->Lock(); // as this is an callback function, to protect the ops in SchedTask()/RunTask()
384
385 RemoveQueue(kRunQueue, task);
386
387 task->SetStatus(EXEC_STATUS_WAIT);
388
389 InsertQueue(kWaitQueue, task);
390
391 task->Unlock();
392
393 task->OnTaskDone(exec_success);
394}
395
396bool GenericDevExecutor::SetGraphAttr(SubgraphTask* task, const char* name, const void* val, int size)
397{

Callers

nothing calls this directly

Calls 4

SetStatusMethod · 0.80
OnTaskDoneMethod · 0.80
LockMethod · 0.45
UnlockMethod · 0.45

Tested by

no test coverage detected