#tensorflow #bindings #cross-platform #ffi #machine-learning #env-var

tensorflowlite

A safe Rust wrapper of TensorFlow Lite

25 releases

new 0.4.5 Jan 6, 2025
0.4.4 Jan 6, 2025
0.3.9 Jan 5, 2025
0.2.9 Jan 4, 2025
0.1.0 Dec 29, 2024

#445 in Machine learning

Download history 378/week @ 2024-12-25 1293/week @ 2025-01-01

1,671 downloads per month

Custom license

59KB
1K SLoC

tensorflowlite

python ./configure.py bazel build -c opt --cxxopt='--std=c++17' --config=monolithic --copt=-Wno-gnu-offsetof-extensions tensorflow/lite/delegates/flex:tensorflowlite_flex mkdir minimal_build cd in minmal_build cmake ../tensorflow-2.18.0/tensorflow/lite/examples/minimal -DLINK_TFLITE_FLEX="ON" cmake --build . -j 1 This works and builds a .a file but only for tensorflow lite....

Prebuild naming in path of env variable: TFL_PREBUILT_PATH: Dynamic Libraries Linux with GNU Toolchain (x86_64):

Shared library files for Linux with the GNU C toolchain. Examples: tensorflowlite_c-v2_18_0-x86_64-linux_gnu.so tensorflowlite_flex-v2_18_0-x86_64-linux_gnu.so macOS (aarch64/arm64):

Dynamic libraries for macOS on Apple Silicon (ARM-based architecture). Examples: tensorflowlite_c-v2_18_0-aarch64-macos.dylib tensorflowlite_flex-v2_18_0-aarch64-macos.dylib Windows (x86_64):

DLLs for Windows on 64-bit architecture. Examples: tensorflowlite_c-v2_18_0-x86_64-windows.dll tensorflowlite_flex-v2_18_0-x86_64-windows.dll Static Libraries Linux with GNU Toolchain (x86_64):

Static libraries for Linux with the GNU C toolchain. Examples: tensorflowlite_c-v2_18_0-x86_64-linux_gnu.a tensorflowlite_flex-v2_18_0-x86_64-linux_gnu.a macOS (aarch64/arm64):

Static libraries for macOS on Apple Silicon (ARM-based architecture). Examples: tensorflowlite_c-v2_18_0-aarch64-macos.a tensorflowlite_flex-v2_18_0-aarch64-macos.a Windows (x86_64):

Static libraries for Windows on 64-bit architecture. Examples: tensorflowlite_c-v2_18_0-x86_64-windows.a tensorflowlite_flex-v2_18_0-x86_64-windows.a

No runtime deps

~0–3.5MB
~67K SLoC