Building tensorflowlite_c dll including flex ops

Hi,

I’m trying to build the tensorflowlite with C Api for Windows. I found the instructions at:

And the cmake instructions to build the tensorflowlite_c.dll:

cmake …/tensorflow_src/tensorflow/lite/c
cmake --build . -j --config Release

work fine for me.

The only problem is that I need to include the flex Ops/link Flex delegate to run my tflite model. I can’t find any instructions on how to do that for tensorflowlite with C Api using cmake. Does anybody know how to adjust the cmake process?

Hi @Finn_Spitz ,

There is no official Cmake build for tflite flex delegate. However you can build the same using the bazel build. You can build it with Bazel as the following command.
bazel build -c opt --config=monolithic tensorflow/lite/delegates/flex:tensorflowlite_flex
Please go through the instructions (c/c++).

Thank You