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
  • Please find attached a screen shot from VSCode studio with nRF Connect plugin:

    The option for TensorFlow Lite Micro Support seems to be grayed out.

    When I manually set in prj.conf I get following:
    warning: TENSORFLOW_LITE_MICRO (defined at modules\tflite-micro\Kconfig:8) was assigned the value
    'y' but got the value 'n'. Check these unsatisfied dependencies: 0 (=n). See
    docs.zephyrproject.org/.../kconfig.html and/or look up
    TENSORFLOW_LITE_MICRO in the menuconfig/guiconfig interface. The Application Development Primer,
    Setting Configuration Values, and Kconfig - Tips and Best Practices sections of the manual might be
    helpful too.

Children
Related