Merge pull request #45474 from mansnils:detection_postprocess

PiperOrigin-RevId: 346538212
This commit is contained in:
TensorFlower Gardener 2020-12-09 06:37:40 -08:00
commit 1a0dd99a6a

View File

@ -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;