Skip to content

Commit 8e0b949

Browse files
committed
Fix unit test
test=develop
1 parent 593ad76 commit 8e0b949

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

paddle/fluid/operators/detection/generate_proposals_op.cu

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -418,7 +418,7 @@ class CUDAGenerateProposalsKernel : public framework::OpKernel<T> {
418418
T *rpn_rois_data = rpn_rois->data<T>();
419419
T *rpn_roi_probs_data = rpn_roi_probs->data<T>();
420420

421-
auto &place = boost::get<platform::CUDAPlace>(dev_ctx.GetPlace());
421+
auto place = boost::get<platform::CUDAPlace>(dev_ctx.GetPlace());
422422

423423
int64_t num_proposals = 0;
424424
std::vector<size_t> offset(1, 0);

0 commit comments

Comments
 (0)