未验证 提交 1bc552b6 编写于 作者: G guru4elephant 提交者: GitHub

Update async_executor.md

上级 ea02df49
...@@ -102,6 +102,22 @@ void AsyncExecutor::RunFromFiles( ...@@ -102,6 +102,22 @@ void AsyncExecutor::RunFromFiles(
} }
// fetch variables in scope 0, and return // fetch variables in scope 0, and return
} }
```
Inside the function ```CreateThreads```,
``` c++
void AsyncExecutor::CreateThreads(const ExecutorThreadWorker* worker,
const ProgramDesc& main_program,
const DataFeed& reader,
const Scope& root_scope,
const int thread_index) {
worker->SetThreadid(thread_index);
worker->CreateThreadOperators(main_program);
worker->CreateThreadScope(main_program);
worker->BindingDataFeedMemory(reader);
worker->SetMainProgram(main_program);
worker->SetRootScope(root_scope);
}
``` ```
Inside the function ```Trainfiles```, Inside the function ```Trainfiles```,
``` c++ ``` c++
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册