Skip to content

Commit

Permalink
Merge pull request #25890 from Dayananda-V:main_warning_fix
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 239506269
  • Loading branch information
tensorflower-gardener committed Mar 21, 2019
2 parents e4941f4 + 3df1cdf commit 1e5d2ce
Showing 1 changed file with 0 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -104,13 +104,11 @@ int main(int argc, char* argv[]) {
// kind of prediction, so figure out what the highest scoring category was.
TfLiteTensor* output = interpreter.output(0);
uint8_t top_category_score = 0;
int top_category_index = 0;
for (int category_index = 0; category_index < kCategoryCount;
++category_index) {
const uint8_t category_score = output->data.uint8[category_index];
if (category_score > top_category_score) {
top_category_score = category_score;
top_category_index = category_index;
}
}

Expand Down

0 comments on commit 1e5d2ce

Please sign in to comment.