Skip to content

Commit 46342a2

Browse files
committed
delete useless code
1 parent 0264ec3 commit 46342a2

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

paddle/fluid/operators/listen_and_serv_op.cc

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -256,10 +256,6 @@ void ListenAndServOp::RunAsyncLoop(framework::Executor *executor,
256256
}
257257
AsyncExecuteBlock(executor, grad_to_prepared_block[recv_var_name].get(),
258258
v.second->GetMutableLocalScope());
259-
// TODO(qiao): explain why
260-
if (var->IsType<framework::SelectedRows>()) {
261-
var->GetMutable<framework::SelectedRows>()->mutable_rows()->clear();
262-
}
263259
}
264260

265261
if (exit_flag) {

0 commit comments

Comments
 (0)