提交 3b04f009 编写于 作者: Y yuyang18

Fix bug

上级 39a44e38
......@@ -170,7 +170,7 @@ std::unique_ptr<SSAGraph> MultiDevSSAGraphBuilder::Build(
PADDLE_ENFORCE_EQ(backward_vars.size() % 2, 0);
for (size_t i = 0; i < backward_vars.size(); ++i) {
for (size_t i = 0; i < backward_vars.size(); i += 2) {
auto &p_name = backward_vars[i];
auto &g_name = backward_vars[i + 1];
VLOG(10) << "Bcast " << g_name << " for parameter " << p_name;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册