Skip to content

Commit beb564d

Browse files
committed
lstm: Fix compilation (undeclared 'isnan')
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]>
1 parent b0abed7 commit beb564d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lstm/lstmrecognizer.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -600,7 +600,7 @@ void LSTMRecognizer::LabelsViaThreshold(const NetworkIO& output,
600600
++t;
601601
}
602602
while (t < width) {
603-
ASSERT_HOST(!isnan(output.f(t)[null_char_]));
603+
ASSERT_HOST(!std::isnan(output.f(t)[null_char_]));
604604
int label = output.BestLabel(t, null_char_, null_char_, NULL);
605605
int char_start = t++;
606606
while (t < width && !NullIsBest(output, null_thr, null_char_, t) &&

0 commit comments

Comments
 (0)