From 8e0b9496de28c0c858c1876831d0117d9f5b110a Mon Sep 17 00:00:00 2001 From: Dang Qingqing Date: Fri, 19 Oct 2018 17:06:45 +0800 Subject: [PATCH] Fix unit test test=develop --- paddle/fluid/operators/detection/generate_proposals_op.cu | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/paddle/fluid/operators/detection/generate_proposals_op.cu b/paddle/fluid/operators/detection/generate_proposals_op.cu index efeeecf7211..91213b3c4d9 100644 --- a/paddle/fluid/operators/detection/generate_proposals_op.cu +++ b/paddle/fluid/operators/detection/generate_proposals_op.cu @@ -418,7 +418,7 @@ class CUDAGenerateProposalsKernel : public framework::OpKernel { T *rpn_rois_data = rpn_rois->data(); T *rpn_roi_probs_data = rpn_roi_probs->data(); - auto &place = boost::get(dev_ctx.GetPlace()); + auto place = boost::get(dev_ctx.GetPlace()); int64_t num_proposals = 0; std::vector offset(1, 0); -- GitLab