mirror of
https://github.com/tesseract-ocr/tesseract.git
synced 2024-11-23 18:49:08 +08:00
Enable fast float32 LSTM by default
It is still possible to build Tesseract with double LSTM: # autoconf ./configure --disable-float32 # cmake cmake .. -DFAST_FLOAT=ON Signed-off-by: Stefan Weil <sw@weilnetz.de>
This commit is contained in:
parent
c602624012
commit
282685d531
@ -85,7 +85,7 @@ option(OPENMP_BUILD "Build with openmp support" OFF) # see issue #1662
|
||||
option(GRAPHICS_DISABLED "Disable disable graphics (ScrollView)" OFF)
|
||||
option(DISABLED_LEGACY_ENGINE "Disable the legacy OCR engine" OFF)
|
||||
option(ENABLE_LTO "Enable link-time optimization" OFF)
|
||||
option(FAST_FLOAT "Enable float for LSTM" OFF)
|
||||
option(FAST_FLOAT "Enable float for LSTM" ON)
|
||||
option(BUILD_TRAINING_TOOLS "Build training tools" ON)
|
||||
option(BUILD_TESTS "Build tests" OFF)
|
||||
option(USE_SYSTEM_ICU "Use system ICU" OFF)
|
||||
|
@ -213,9 +213,9 @@ AC_ARG_WITH([extra-libraries],
|
||||
|
||||
AC_MSG_CHECKING([--enable-float32 argument])
|
||||
AC_ARG_ENABLE([float32],
|
||||
AS_HELP_STRING([--enable-float32], [enable float for LSTM [default=no]]))
|
||||
AS_HELP_STRING([--disable-float32], [disable float and enable double for LSTM]))
|
||||
AC_MSG_RESULT([$enable_float32])
|
||||
if test "$enable_float32" = "yes"; then
|
||||
if test "$enable_float32" != "no"; then
|
||||
AC_DEFINE([FAST_FLOAT], [1], [Enable float for LSTM])
|
||||
fi
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user