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

Function MapExecStatus

core/lib/graph_executor.cpp:481–503  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

479}
480
481static int MapExecStatus(int internal)
482{
483 switch(internal)
484 {
485 case EXEC_STATUS_CREATED:
486 case EXEC_STATUS_INITED:
487 return GRAPH_STAT_CREATED;
488 case EXEC_STATUS_READY:
489 return GRAPH_STAT_READY;
490 case EXEC_STATUS_DONE:
491 return GRAPH_STAT_DONE;
492 case EXEC_STATUS_WAIT:
493 case EXEC_STATUS_RUN:
494 return GRAPH_STAT_RUNNING;
495 case EXEC_STATUS_BAD:
496 case EXEC_STATUS_INVALID:
497 return GRAPH_STAT_ERROR;
498
499 default:
500 set_tengine_errno(EINVAL);
501 return -1;
502 }
503}
504
505int GraphExecutor::GetExecStatus(void)
506{

Callers 1

GetExecStatusMethod · 0.85

Calls 1

set_tengine_errnoFunction · 0.85

Tested by

no test coverage detected