提交 ecedd531 编写于 作者: Q Qiao Longfei

fix code bug test=develop

上级 f4f4816b
...@@ -29,7 +29,7 @@ AsyncSSAGraphExecutor::AsyncSSAGraphExecutor( ...@@ -29,7 +29,7 @@ AsyncSSAGraphExecutor::AsyncSSAGraphExecutor(
graphs_(std::move(graphs)) { graphs_(std::move(graphs)) {
VLOG(3) << "build AsyncSSAGraphExecutor"; VLOG(3) << "build AsyncSSAGraphExecutor";
PADDLE_ENFORCE_EQ(places_.size(), local_scopes_.size()); PADDLE_ENFORCE_EQ(places_.size(), local_scopes_.size());
PADDLE_ENFORCE_EQ(graphs_.size, local_scopes_.size()); PADDLE_ENFORCE_EQ(graphs_.size(), local_scopes_.size());
// set the correct size of thread pool to each device. // set the correct size of thread pool to each device.
strategy_.num_threads_ = strategy_.num_threads_ < places_.size() strategy_.num_threads_ = strategy_.num_threads_ < places_.size()
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册