       workspace_proposals.dptr_, bbox_deltas.dptr_, workspace_proposals.dptr_);
     FRCNN_CUDA_CHECK(cudaPeekAtLastError());
 
-    Tensor<xpu, 1> score = workspace_pre_nms[0];
-    Tensor<xpu, 1> order = workspace_pre_nms[1];
-
     // filter boxes with less than rpn_min_size
     CheckLaunchParam(dimGrid, dimBlock, "FilterBox");
     FilterBoxKernel<<<dimGrid, dimBlock>>>(

    FRCNN_CUDA_CHECK(cudaPeekAtLastError());

    FRCNN_CUDA_CHECK(cudaFree(workspace_proposals_ptr));
    FRCNN_CUDA_CHECK(cudaFree(workspace_pre_nms_ptr));

    // perform nms
    std::vector<int> _keep(workspace_ordered_proposals.size(0));

    FRCNN_CUDA_CHECK(cudaPeekAtLastError());

    // Reorder proposals according to order
    const int top_n = std::min(rpn_pre_nms_top_n, count);
    dimGrid.x = (top_n + kMaxThreadsPerBlock - 1) / kMaxThreadsPerBlock;
    CheckLaunchParam(dimGrid, dimBlock, "ReorderProposals");
    ReorderProposalsKernel<<<dimGrid, dimBlock>>>(
