STT-tensorflow/tensorflow/lite/examples/minimal
2021-01-21 22:53:32 -08:00
..
BUILD
CMakeLists.txt Fix build errors on OSX 2021-01-21 22:53:32 -08:00
minimal.cc
README.md Update cmake support of TFLite minimal example 2020-10-30 19:24:00 -07:00

TensorFlow Lite C++ minimal example

This example shows how you can build a simple TensorFlow Lite application.

Step 1. Install CMake tool

It requires CMake 3.16 or higher. On Ubuntu, you can simply run the following command.

sudo apt-get install cmake

Or you can follow the official cmake installation guide

Step 2. Clone TensorFlow repository

git clone https://github.com/tensorflow/tensorflow.git tensorflow_src

Step 3. Create CMake build directory and run CMake tool

mkdir minimal_build
cd minimal_build
cmake ../tensorflow_src/tensorflow/lite/examples/minimal

Step 4. Build TensorFlow Lite

In the minimal_build directory,

cmake --build . -j