Skip to content

Commit

Permalink
fix(tvm_utility): fix warning of negativeContainerIndex (#6924)
Browse files Browse the repository at this point in the history
Signed-off-by: Ryuta Kambe <[email protected]>
  • Loading branch information
veqcc authored May 8, 2024
1 parent b6d7477 commit 6d00269
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions common/tvm_utility/example/yolo_v2_tiny/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,8 @@ class PostProcessorYoloV2Tiny : public tvm_utility::pipeline::PostProcessor<std:
}
}

if (max_ind == -1) continue;

// Decode and copy class probabilities
std::vector<float> class_probabilities{};
float p_total = 0;
Expand Down

0 comments on commit 6d00269

Please sign in to comment.