tensorflow / tflite-micro

Infrastructure to enable deployment of ML models to low-power resource-constrained embedded targets (including microcontrollers and digital signal processors).
Apache License 2.0
1.74k stars 769 forks source link

Building tflm lib for hexagon #2606

Closed sharvin-vittappan closed 3 weeks ago

sharvin-vittappan commented 3 weeks ago

Hi, I am trying to build tflm lib for hexagon. make command issued: export HEXAGON_TOOL_VER=8.5.08 export HEXAGON_ROOT=/location of hexagon SDK/Hexagon_SDK/4.5.0.4/tools/HEXAGON_Tools export HEXAGON_CPU_VER=v66 export HEXAGON_TFLM_LIB=/path to library/hexagon_tflm_core.a make -f tensorflow/lite/micro/tools/make/Makefile TARGET=hexagon OPTIMIZED_KERNEL_DIR=hexagon microlite

I get an error as: tensorflow/lite/micro/tools/make/Makefile:653: *** Incorrect OPTIMIZED_KERNEL_DIR: The optimized kernel directory: tensorflow/lite/micro/kernels/hexagon does not exist.. Stop.

Related issue:https://github.com/tensorflow/tflite-micro/issues/2599

ddavis-2015 commented 3 weeks ago

@sharvin-vittappan

You will want to add OPTIMIZED_KERNEL_DIR_PREFIX=${TENSORFLOW_ROOT}third_party to your build command. Examples of build commands for the Hexagon target can be found here.