提交 46342a23 编写于 作者: Q qiaolongfei

delete useless code

上级 0264ec39
......@@ -256,10 +256,6 @@ void ListenAndServOp::RunAsyncLoop(framework::Executor *executor,
}
AsyncExecuteBlock(executor, grad_to_prepared_block[recv_var_name].get(),
v.second->GetMutableLocalScope());
// TODO(qiao): explain why
if (var->IsType<framework::SelectedRows>()) {
var->GetMutable<framework::SelectedRows>()->mutable_rows()->clear();
}
}
if (exit_flag) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册