Skip to content

Commit

Permalink
TF Lite main.cc warnings fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Dayananda-V committed Feb 19, 2019
1 parent 585fff4 commit 3df1cdf
Showing 1 changed file with 0 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -103,13 +103,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 3df1cdf

Please sign in to comment.