mirror of
https://github.com/tesseract-ocr/tesseract.git
synced 2024-11-30 23:49:05 +08:00
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:
parent
b0abed73b9
commit
beb564df82
@ -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) &&
|
||||
|
Loading…
Reference in New Issue
Block a user