Skip to content

Commit

Permalink
Replace tab with space.
Browse files Browse the repository at this point in the history
  • Loading branch information
helinwang committed Mar 2, 2018
1 parent 26c0e53 commit c2b6365
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions paddle/fluid/operators/parallel_do_op.cc
Original file line number Diff line number Diff line change
Expand Up @@ -147,13 +147,13 @@ class ParallelDoOp : public framework::OperatorBase {
// make a copy of each GPU place, starting from the second
// place
for (size_t i = 1; i < sub_scopes.size(); ++i) {
auto &place = places[i];
auto *sub_scope = sub_scopes[i];
auto exists = sub_scope->FindVarLocally(param) != nullptr;
if (!exists && platform::is_gpu_place(place)) {
auto &place = places[i];
auto *sub_scope = sub_scopes[i];
auto exists = sub_scope->FindVarLocally(param) != nullptr;
if (!exists && platform::is_gpu_place(place)) {
auto *dst = sub_scope->Var(param)->GetMutable<LoDTensor>();
framework::TensorCopy(src, place, dst);
}
}
}
}
WaitOnPlaces(places);
Expand Down

0 comments on commit c2b6365

Please sign in to comment.