samples: tensorflow: fix documentation

Fixes documentation for samples that incorrectly state that TensorFlow
library requires the -fno-threadsafe-statics flag to compile.

Signed-off-by: Lauren Murphy <lauren.murphy@intel.com>
This commit is contained in:
Lauren Murphy 2021-05-18 16:04:45 -05:00 committed by Anas Nashif
commit e4b985b929
2 changed files with 2 additions and 16 deletions

View file

@ -68,8 +68,7 @@ Modifying Sample for Your Own Project
It is recommended that you copy and modify one of the two TensorFlow It is recommended that you copy and modify one of the two TensorFlow
samples when creating your own TensorFlow project. To build with samples when creating your own TensorFlow project. To build with
TensorFlow, you must enable the below Kconfig options in your :file:`prj.conf` TensorFlow, you must enable the below Kconfig options in your :file:`prj.conf`.
and set a flag in your :file:`CMakeLists.txt`.
:file:`prj.conf`: :file:`prj.conf`:
@ -79,12 +78,6 @@ and set a flag in your :file:`CMakeLists.txt`.
CONFIG_NEWLIB_LIBC=y CONFIG_NEWLIB_LIBC=y
CONFIG_TENSORFLOW_LITE_MICRO=y CONFIG_TENSORFLOW_LITE_MICRO=y
:file:`CMakeLists.txt`:
.. code-block:: console
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fno-threadsafe-statics")
Training Training
******** ********
Follow the instructions in the :file:`train/` directory to train your Follow the instructions in the :file:`train/` directory to train your

View file

@ -102,8 +102,7 @@ Modifying Sample for Your Own Project
It is recommended that you copy and modify one of the two TensorFlow It is recommended that you copy and modify one of the two TensorFlow
samples when creating your own TensorFlow project. To build with samples when creating your own TensorFlow project. To build with
TensorFlow, you must enable at least the below Kconfig options in TensorFlow, you must enable the below Kconfig options in your :file:`prj.conf`.
your :file:`prj.conf` and set a flag in your :file:`CMakeLists.txt`.
:file:`prj.conf`: :file:`prj.conf`:
@ -113,12 +112,6 @@ your :file:`prj.conf` and set a flag in your :file:`CMakeLists.txt`.
CONFIG_NEWLIB_LIBC=y CONFIG_NEWLIB_LIBC=y
CONFIG_TENSORFLOW_LITE_MICRO=y CONFIG_TENSORFLOW_LITE_MICRO=y
:file:`CMakeLists.txt`:
.. code-block:: console
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fno-threadsafe-statics")
Training Training
******** ********
Follow the instructions in the :file:`train/` directory to train your Follow the instructions in the :file:`train/` directory to train your