TFLu: Fix bug in PPD op
Change-Id: I58da0d92491d264d6ba90fb1b3a5673c0058047f
This commit is contained in:
parent
0939f0b7a8
commit
4425be2b7b
@ -357,8 +357,9 @@ int SelectDetectionsAboveScoreThreshold(const float* values, int size,
|
||||
int counter = 0;
|
||||
for (int i = 0; i < size; i++) {
|
||||
if (values[i] >= threshold) {
|
||||
keep_values[counter++] = values[i];
|
||||
keep_indices[i] = i;
|
||||
keep_values[counter] = values[i];
|
||||
keep_indices[counter] = i;
|
||||
counter++;
|
||||
}
|
||||
}
|
||||
return counter;
|
||||
|
Loading…
Reference in New Issue
Block a user