mirror of
https://github.com/saymrwulf/onnxruntime.git
synced 2026-07-12 17:57:38 +00:00
Do not use ADL to invoke std algos (#14851)
This is a follow up for #14716
This commit is contained in:
parent
70a31e047a
commit
0ebe8e34f8
1 changed files with 1 additions and 1 deletions
|
|
@ -130,7 +130,7 @@ static void SelectTopK(const Comparator& comparer,
|
|||
|
||||
// find the top k (largest or smallest) elements in the data holder - O(n) average. O(n*n) worst case.
|
||||
// See https://en.wikipedia.org/wiki/Quickselect
|
||||
nth_element(data_holder.begin(), data_holder.begin() + (k - 1), data_holder.end(), comparer);
|
||||
std::nth_element(data_holder.begin(), data_holder.begin() + (k - 1), data_holder.end(), comparer);
|
||||
|
||||
// sort the top k elements if needed - O (k log k)
|
||||
if (sort_top_k) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue