Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix typo #26

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions contents/distributed.tex
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ \subsubsection{集群配置}
],
"ps": [
"ps0:2222", # /job:ps/task:0
"ps1:2222" # /job:ps/task:0
"ps1:2222" # /job:ps/task:1
]})
\end{python}
\end{leftbar}
Expand Down Expand Up @@ -3650,7 +3650,7 @@ \subsubsection{GraphMgr}
&thread::ThreadPool::Schedule,
worker_env_->compute_pool, _1);

2. Broadcast all partitions to run
// 2. Broadcast all partitions to run
for (const auto& unit : item->units) {
unit.root->RunAsync(args, barrier->Get());
}
Expand Down
2 changes: 1 addition & 1 deletion contents/local.tex
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ \subsection{领域模型}

如\refig{local-direct-session-model}所示,\code{DirectSession}持有\code{SimpleGraphExecutionState}实例,后者负责计算图的剪枝,生成\code{ClientGraph}实例。

\code{DirectSession}同时持有一组线程池,但是没次\code{DirectSession.run}时,根据外部配置的索引,从线程池组里选择其一为其提供服务。因为\code{DirectSession}是线程安全的,支持多个并发执行的\code{DirectSession.run},即可以同时运行多个线程池实例。
\code{DirectSession}同时持有一组线程池,但是每次\code{DirectSession.run}时,根据外部配置的索引,从线程池组里选择其一为其提供服务。因为\code{DirectSession}是线程安全的,支持多个并发执行的\code{DirectSession.run},即可以同时运行多个线程池实例。

\begin{figure}[H]
\centering
Expand Down