Building TF lite 2.3 C++ API for Windows

374 views
Skip to first unread message

Demos

unread,
Mar 17, 2021, 10:51:12 AM3/17/21
to TensorFlow Lite
When building the C API for TF lite 2.3, I use this:

bazel build tensorflow/lite/c:tensorflowlite_c -c opt

1. What is the equivalent command for building the C++ API for TF lite?
2. Which files do I grab from the output folder (header files, lib files, dll files) ??

Joe Bowser

unread,
Mar 17, 2021, 1:34:11 PM3/17/21
to Demos, TensorFlow Lite
The command is:

bazel build --config android_arm64 tensorflow/lite:libtensorflowlite.so
This will only build the main library and NNAPI delegates, but not the GPU delegate.  I've only done this for Android so far with Bazel.  You can grab the output out of the bazel_out/bin directory, where the output will be in its respective directory (i.e. bazel-out/bin/tensorflow/lite/libtensorflowlite.so)

As for headers, you can copy the headers directly out of source and include them into your CMake.  

I've recently tested this on TFLite 2.4.1, so it still works.



--
You received this message because you are subscribed to the Google Groups "TensorFlow Lite" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tflite+un...@tensorflow.org.
To view this discussion on the web visit https://groups.google.com/a/tensorflow.org/d/msgid/tflite/c2119c21-703d-4607-9f2e-496520e41389n%40tensorflow.org.
Reply all
Reply to author
Forward
0 new messages