Skip to content

Commit 110a1a9

Browse files
author
chengduo
authored
fix FeedAndSplitTensorIntoLocalScopes (#11817) (#11852)
1 parent 1ad8071 commit 110a1a9

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

paddle/fluid/framework/parallel_executor.cc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -253,6 +253,9 @@ void ParallelExecutor::FeedAndSplitTensorIntoLocalScopes(
253253
t->set_lod(lod_tensors[j].lod());
254254
}
255255
}
256+
for (auto &p : member_->places_) {
257+
platform::DeviceContextPool::Instance().Get(p)->Wait();
258+
}
256259
}
257260

258261
ParallelExecutor::~ParallelExecutor() {

0 commit comments

Comments
 (0)