Commit ca48aac2 authored by Ted Themistokleous's avatar Ted Themistokleous
Browse files

Use std::greater to compaire pair instead of using lambda for boxes heap

Don't reinvent the wheel, just use std::greater<****> since it mirrors the
behavior of the previous priority_queue we replaced here.
parent 6e337a2f
......@@ -253,9 +253,10 @@ struct nonmaxsuppression
return std::make_pair(sc, box_idx - 1);
});
}
std::sort(std::execution::par, boxes_heap.begin(), boxes_heap.end(), [&](auto a, auto b) {
return a.first > b.first;
});
std::sort(std::execution::par,
boxes_heap.begin(),
boxes_heap.end(),
std::greater<std::pair<double, int64_t>>{});
return boxes_heap;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment