未验证 提交 c8bb526a 编写于 作者: A Amit D 提交者: GitHub

Merge pull request #3510 from stweil/enable-float32

Add new configure option --enable-float32 for faster LSTM with float
......@@ -207,6 +207,14 @@ AC_ARG_WITH([extra-libraries],
AC_MSG_ERROR([Cannot stat directory $withval])
fi])
AC_MSG_CHECKING([--enable-float32 argument])
AC_ARG_ENABLE([float32],
AS_HELP_STRING([--enable-float32], [enable float for LSTM [default=no]]))
AC_MSG_RESULT([$enable_float32])
if test "$enable_float32" = "yes"; then
AC_DEFINE([FAST_FLOAT], [1], [Enable float for LSTM])
fi
AC_MSG_CHECKING([--enable-graphics argument])
AC_ARG_ENABLE([graphics],
AS_HELP_STRING([--disable-graphics], [disable graphics (ScrollView)]))
......
......@@ -17,6 +17,10 @@
#ifndef TESSERACT_TESSTYPES_H
#define TESSERACT_TESSTYPES_H
#ifdef HAVE_CONFIG_H
# include "config_auto.h" // FAST_FLOAT
#endif
#include <cstdint> // for int16_t
namespace tesseract {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册