Skip to content

Commit

Permalink
Fix unused-variable issues in a few places
Browse files Browse the repository at this point in the history
Reviewed By: palmje

Differential Revision: D67545886

fbshipit-source-id: 6ed93210d4c8592e8e40d8c2d0b0d2556cbfbbdd
  • Loading branch information
r-barnes authored and facebook-github-bot committed Dec 20, 2024
1 parent 6e9d119 commit d7edbcf
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion flashlight/lib/text/test/decoder/Seq2SeqDecoderTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,8 @@ TEST(Seq2SeqDecoderTest, LexiconFreeBasic) {
// otherwise, they have the best token score from the prev timestep
assert(timestep > 1);
const auto prev = modelScoreMapping[timestep - 1];
const auto maxScore = std::max_element(prev.begin(), prev.end());
[[maybe_unused]] const auto maxScore =
std::max_element(prev.begin(), prev.end());
assert(p->score == *maxScore);
assert(p->tokenIdx == (maxScore - prev.begin())); // idx of max val
assert( // previous index of this hypo in the beam
Expand Down

0 comments on commit d7edbcf

Please sign in to comment.