From 46342a2306d1ea8daac6aaddad895c4be1746cc8 Mon Sep 17 00:00:00 2001 From: qiaolongfei Date: Thu, 26 Apr 2018 13:51:26 +0800 Subject: [PATCH] delete useless code --- paddle/fluid/operators/listen_and_serv_op.cc | 4 ---- 1 file changed, 4 deletions(-) diff --git a/paddle/fluid/operators/listen_and_serv_op.cc b/paddle/fluid/operators/listen_and_serv_op.cc index ba2ea0d13e5..4c0da18ba8e 100644 --- a/paddle/fluid/operators/listen_and_serv_op.cc +++ b/paddle/fluid/operators/listen_and_serv_op.cc @@ -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()) { - var->GetMutable()->mutable_rows()->clear(); - } } if (exit_flag) { -- GitLab