tesseract/lstm
Stefan Weil 15b3596ec4 Optimize LSTM code for builds without OpenMP
The constant value kNumThreads is not only used to configure the number
of threads but also to allocate vectors used in those threads.

There is only a single thread without OpenMP, so it is sufficient to
allocate vectors with only one element in that case.

Replace also the upper limit in the for loops by the known vector size.

Signed-off-by: Stefan Weil <sw@weilnetz.de>
2017-05-22 10:13:53 +02:00
..
convolve.cpp Final part of endian improvement. Adds big-endian support to lstm and fixes issue 518 2017-05-03 16:09:44 -07:00
convolve.h Final part of endian improvement. Adds big-endian support to lstm and fixes issue 518 2017-05-03 16:09:44 -07:00
ctc.cpp Added new LSTM-based neural network line recognizer 2016-11-07 15:38:07 -08:00
ctc.h Added new LSTM-based neural network line recognizer 2016-11-07 15:38:07 -08:00
fullyconnected.cpp Optimize LSTM code for builds without OpenMP 2017-05-22 10:13:53 +02:00
fullyconnected.h Final part of endian improvement. Adds big-endian support to lstm and fixes issue 518 2017-05-03 16:09:44 -07:00
functions.cpp Added new LSTM-based neural network line recognizer 2016-11-07 15:38:07 -08:00
functions.h Added new LSTM-based neural network line recognizer 2016-11-07 15:38:07 -08:00
input.cpp Final part of endian improvement. Adds big-endian support to lstm and fixes issue 518 2017-05-03 16:09:44 -07:00
input.h Final part of endian improvement. Adds big-endian support to lstm and fixes issue 518 2017-05-03 16:09:44 -07:00
lstm.cpp Reviewed uses of reinterpret_cast 2017-05-11 01:58:40 +02:00
lstm.h Final part of endian improvement. Adds big-endian support to lstm and fixes issue 518 2017-05-03 16:09:44 -07:00
lstmrecognizer.cpp Final part of endian improvement. Adds big-endian support to lstm and fixes issue 518 2017-05-03 16:09:44 -07:00
lstmrecognizer.h Reviewed uses of reinterpret_cast 2017-05-11 01:58:40 +02:00
lstmtrainer.cpp Final part of endian improvement. Adds big-endian support to lstm and fixes issue 518 2017-05-03 16:09:44 -07:00
lstmtrainer.h Final part of endian improvement. Adds big-endian support to lstm and fixes issue 518 2017-05-03 16:09:44 -07:00
Makefile.am openmp: Fix build with clang++ and compilers without OpenMP support 2016-12-04 18:44:03 +01:00
maxpool.cpp Final part of endian improvement. Adds big-endian support to lstm and fixes issue 518 2017-05-03 16:09:44 -07:00
maxpool.h Final part of endian improvement. Adds big-endian support to lstm and fixes issue 518 2017-05-03 16:09:44 -07:00
network.cpp Corrected SetEnableTraining for recovery from a recognize-only model. 2017-05-05 16:39:43 -07:00
network.h Corrected SetEnableTraining for recovery from a recognize-only model. 2017-05-05 16:39:43 -07:00
networkbuilder.cpp Reviewed uses of reinterpret_cast 2017-05-11 01:58:40 +02:00
networkbuilder.h Added new LSTM-based neural network line recognizer 2016-11-07 15:38:07 -08:00
networkio.cpp Fewer g++ -Wsign-compare warnings 2017-05-11 23:14:52 +02:00
networkio.h Added new LSTM-based neural network line recognizer 2016-11-07 15:38:07 -08:00
networkscratch.h Added new LSTM-based neural network line recognizer 2016-11-07 15:38:07 -08:00
parallel.cpp openmp: Fix build with clang++ and compilers without OpenMP support 2016-12-04 18:44:03 +01:00
parallel.h Added new LSTM-based neural network line recognizer 2016-11-07 15:38:07 -08:00
plumbing.cpp Reviewed uses of reinterpret_cast 2017-05-11 01:58:40 +02:00
plumbing.h Final part of endian improvement. Adds big-endian support to lstm and fixes issue 518 2017-05-03 16:09:44 -07:00
recodebeam.cpp Fixed issue #633 (multi-language mode 2017-01-25 15:58:39 -08:00
recodebeam.h Made LSTM the default engine, pushed cube out 2016-12-13 14:37:40 -08:00
reconfig.cpp Final part of endian improvement. Adds big-endian support to lstm and fixes issue 518 2017-05-03 16:09:44 -07:00
reconfig.h Final part of endian improvement. Adds big-endian support to lstm and fixes issue 518 2017-05-03 16:09:44 -07:00
reversed.cpp Added new LSTM-based neural network line recognizer 2016-11-07 15:38:07 -08:00
reversed.h Added new LSTM-based neural network line recognizer 2016-11-07 15:38:07 -08:00
series.cpp Reviewed uses of reinterpret_cast 2017-05-11 01:58:40 +02:00
series.h Fix typos in new LSTM code 2016-11-22 08:25:43 +01:00
static_shape.h Fix typos in new LSTM code 2016-11-22 08:25:43 +01:00
stridemap.cpp Fewer g++ -Wsign-compare warnings 2017-05-11 23:14:52 +02:00
stridemap.h Fixes to training process to allow incremental training from a recognition model 2016-11-30 15:51:17 -08:00
tfnetwork.cpp Optimize code by replacing init_to_size with resize_no_init 2017-05-12 14:34:55 +02:00
tfnetwork.h Final part of endian improvement. Adds big-endian support to lstm and fixes issue 518 2017-05-03 16:09:44 -07:00
tfnetwork.proto Added new LSTM-based neural network line recognizer 2016-11-07 15:38:07 -08:00
weightmatrix.cpp Optimize code by replacing init_to_size with resize_no_init 2017-05-12 14:34:55 +02:00
weightmatrix.h Corrected SetEnableTraining for recovery from a recognize-only model. 2017-05-05 16:39:43 -07:00