Tensorflow example not working on nRF Connect SDK

I have tried tensorflow example on nRF Connect SDK v1.6.1, v1.7.0 and v1.7.1 but all of them are not working.

To reproduce the behavior, build any example under zephyr\sample\modules\tensorflow

Here is the error from output console:

1> Compiling ‘model.cc’
2> Compiling ‘output_handler.cc’
4> ../src/main_functions.cc:19:10: fatal error: tensorflow/lite/micro/all_ops_resolver.h: No such file or directory
4> compilation terminated.
2> In file included from ../src/output_handler.cc:17:
2> ../src/output_handler.h:20:10: fatal error: tensorflow/lite/c/common.h: No such file or directory
2> compilation terminated.
Build failed

Parents Reply
  • Since the nRF Connect SDK does not have official support available for running tensorflow directly, the help I can give will be limited.
    But I will help you look into the issue still, so:

    First, can you specify why you

    Ivan Angelov said:

    could not set

    CONFIG_TENSORFLOW_LITE_MICRO=y

    ?

    Try to use our menuconfig tool to search for CONFIG_TENSORFLOW_LITE_MICRO. This will show you which dependencies prevent you to set this config.

    Regards,
    Sigurd Hellesvik

Children
Related