From b33e6bf5ef14c7c7d769ec127dcc6ed2e602ee2b Mon Sep 17 00:00:00 2001 From: dengkaipeng Date: Tue, 12 Mar 2019 09:12:04 +0000 Subject: [PATCH] remove comment code. test=develop --- paddle/fluid/operators/detection/yolo_box_op.cu | 6 ------ 1 file changed, 6 deletions(-) diff --git a/paddle/fluid/operators/detection/yolo_box_op.cu b/paddle/fluid/operators/detection/yolo_box_op.cu index 12555f53473..7d223e84a8b 100644 --- a/paddle/fluid/operators/detection/yolo_box_op.cu +++ b/paddle/fluid/operators/detection/yolo_box_op.cu @@ -83,12 +83,6 @@ class YoloBoxOpCUDAKernel : public framework::OpKernel { const int an_num = anchors.size() / 2; int input_size = downsample_ratio * h; - /* Tensor anchors_t, cpu_anchors_t; */ - /* auto cpu_anchors_data = */ - /* cpu_anchors_t.mutable_data({an_num * 2}, platform::CPUPlace()); */ - /* std::copy(anchors.begin(), anchors.end(), cpu_anchors_data); */ - /* TensorCopySync(cpu_anchors_t, ctx.GetPlace(), &anchors_t); */ - /* auto anchors_data = anchors_t.data(); */ auto& dev_ctx = ctx.cuda_device_context(); auto& allocator = platform::DeviceTemporaryAllocator::Instance().Get(dev_ctx); -- GitLab