Jianxiang Ran 72ce4bde8a fix(ci): build tflite with lower glibc 2 éve
..
Readme.md faad134cd8 refactor(*): update product name in docs 3 éve
libtensorflowlite.so 72ce4bde8a fix(ci): build tflite with lower glibc 2 éve
libtensorflowlite_c.so 72ce4bde8a fix(ci): build tflite with lower glibc 2 éve

Readme.md

Tensorflow Lite C API library

This is the prebuilt tensorflow lite c library for debian 10. It can be used directly in eKuiper docker image of tags x.x.x or x.x.x-slim.

To use in other environment, you need to build the library from source.

Build from source

Here are the steps to build from source in debian.

  1. Install Python

  2. Install required python lib: pip3 install -r requirements.txt. The requirements are from tensorflow/tensorflow/tools/pip_package/setup.py of the corresponding tensorflow version.

  3. Install Bazel

  4. Clone tensorflow,switch to git checkout v2.2.0-rc3 -b mybranch

  5. Build the so files, the outputs are in ./bazel-bin

   $ cd $tensorflowSrc
   $ bazel build --config monolithic -c opt //tensorflow/lite:libtensorflowlite.so
   $ bazel build --config monolithic -c opt //tensorflow/lite/c:libtensorflowlite_c.so