Skip to content

Commit 9ae7e4e

Browse files
committed
Merge branch 'develop' of https://github.com/PaddlePaddle/Paddle into deadlinks
2 parents 50c2a2e + acd7309 commit 9ae7e4e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

paddle/fluid/framework/details/reduce_op_handle_test.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ struct TestReduceOpHandle {
109109
// add input
110110
for (size_t j = 0; j < gpu_list_.size(); ++j) {
111111
if (!use_gpu_) {
112-
op_handle_->dev_ctxes_[gpu_list_[j]] = ctxs_[j].get();
112+
op_handle_->SetDeviceContext(gpu_list_[j], ctxs_[j].get());
113113
}
114114
auto *in_var_handle = new VarHandle(1, j, "input", gpu_list_[j]);
115115
in_var_handle->generated_op_ = nullptr;

0 commit comments

Comments
 (0)