Skip to content

Commit

Permalink
lstm: Fix compilation (undeclared 'isnan')
Browse files Browse the repository at this point in the history
gcc report:

lstm/lstmrecognizer.cpp:608:47: error: 'isnan' was not declared in this scope
     ASSERT_HOST(!isnan(output.f(t)[null_char_]));

Signed-off-by: Stefan Weil <[email protected]>
  • Loading branch information
stweil committed Nov 22, 2016
1 parent b0abed7 commit beb564d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lstm/lstmrecognizer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -600,7 +600,7 @@ void LSTMRecognizer::LabelsViaThreshold(const NetworkIO& output,
++t;
}
while (t < width) {
ASSERT_HOST(!isnan(output.f(t)[null_char_]));
ASSERT_HOST(!std::isnan(output.f(t)[null_char_]));
int label = output.BestLabel(t, null_char_, null_char_, NULL);
int char_start = t++;
while (t < width && !NullIsBest(output, null_thr, null_char_, t) &&
Expand Down

0 comments on commit beb564d

Please sign in to comment.