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 <sw@weilnetz.de>
This commit is contained in:
Stefan Weil 2016-11-22 11:31:01 +01:00
parent b0abed73b9
commit beb564df82

View File

@ -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) &&