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

Method Prerun

executor/lib/graph_task.cpp:224–247  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

222}
223
224bool GraphTask::Prerun(void)
225{
226 output_task_number_ = 0;
227
228 DevScheduler* scheduler = dev_engine_->GetScheduler();
229
230 for(auto e : sub_task_list_)
231 {
232 if(!scheduler->PrerunTask(dev_engine_, e->dev_executor, e))
233 {
234 XLOG_ERROR() << "failed to Prerun task on dev executor: " << e->dev_executor->GetName() << "\n";
235 return false;
236 }
237
238 e->attached = true;
239
240 if(e->is_output_task)
241 output_task_number_++;
242 }
243
244 status_ = EXEC_STATUS_INITED;
245
246 return true;
247}
248
249bool GraphTask::SyncRun(void)
250{

Callers 1

DevPrerunMethod · 0.45

Calls 3

GetSchedulerMethod · 0.80
GetNameMethod · 0.80
PrerunTaskMethod · 0.45

Tested by

no test coverage detected