Skip to content

Commit 9a0ad10

Browse files
committed
fix reduce_op_handle_test
1 parent cec4e6e commit 9a0ad10

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)