superxan a5852b58cb fea(plug): add general tensorflow function (#1513) il y a 2 ans
..
Readme.md a5852b58cb fea(plug): add general tensorflow function (#1513) il y a 2 ans

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