Skip to content

Commit d7edbcf

Browse files
r-barnesfacebook-github-bot
authored andcommitted
Fix unused-variable issues in a few places
Reviewed By: palmje Differential Revision: D67545886 fbshipit-source-id: 6ed93210d4c8592e8e40d8c2d0b0d2556cbfbbdd
1 parent 6e9d119 commit d7edbcf

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

flashlight/lib/text/test/decoder/Seq2SeqDecoderTest.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,8 @@ TEST(Seq2SeqDecoderTest, LexiconFreeBasic) {
122122
// otherwise, they have the best token score from the prev timestep
123123
assert(timestep > 1);
124124
const auto prev = modelScoreMapping[timestep - 1];
125-
const auto maxScore = std::max_element(prev.begin(), prev.end());
125+
[[maybe_unused]] const auto maxScore =
126+
std::max_element(prev.begin(), prev.end());
126127
assert(p->score == *maxScore);
127128
assert(p->tokenIdx == (maxScore - prev.begin())); // idx of max val
128129
assert( // previous index of this hypo in the beam

0 commit comments

Comments
 (0)