|
2 rokov pred | |
---|---|---|
.. | ||
Readme.md | 2 rokov pred |
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.
Here are the steps to build from source in debian.
Install Python
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.
Install Bazel
Clone tensorflow,switch to git checkout v2.2.0-rc3 -b mybranch
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