MCPcopy Create free account
hub / github.com/ARM-software/armnn / TopKSort

Function TopKSort

src/backends/reference/workloads/DetectionPostProcess.cpp:23–27  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

21}
22
23void TopKSort(unsigned int k, unsigned int* indices, const float* values, unsigned int numElement)
24{
25 std::partial_sort(indices, indices + k, indices + numElement,
26 [&values](unsigned int i, unsigned int j) { return values[i] > values[j]; });
27}
28
29float IntersectionOverUnion(const float* boxI, const float* boxJ)
30{

Callers 3

NonMaxSuppressionFunction · 0.85
DetectionPostProcessFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected