Skip to content

Commit 4343be3

Browse files
authored
Update DetectionUtil.cpp
1 parent dade427 commit 4343be3

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

paddle/gserver/layers/DetectionUtil.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -536,8 +536,7 @@ void getDetectionOutput(const real* confData,
536536
MatrixPtr outBuffer;
537537
Matrix::resizeOrCreate(outBuffer, numKept, 7, false, false);
538538
real* bufferData = outBuffer->getData();
539-
for (size_t i = 0; i < 7; i++)
540-
bufferData[i] = -1;
539+
for (size_t i = 0; i < 7; i++) bufferData[i] = -1;
541540
size_t count = 0;
542541
for (size_t n = 0; n < batchSize; ++n) {
543542
for (map<size_t, vector<size_t>>::const_iterator it = allIndices[n].begin();

0 commit comments

Comments
 (0)