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 #2599

Closed sharvin-vittappan closed 1 month ago

sharvin-vittappan commented 1 month ago

Hi,

I am trying to build tflm lib for hexagon. make command issued: make -f tensorflow/lite/micro/tools/make/Makefile TARGET=hexagon OPTIMIZED_KERNEL_DIR=hexagon microlite

Error observed: tensorflow/lite/micro/tools/make/targets/hexagon_makefile.inc:42: *** HEXAGON_TFLM_LIB is undefined. Stop.

How could I resolve this error?

Thanks

rascani commented 1 month ago

Hexagon support requires an additional library that is distributed as part of the Qualcomm Hexagon SDK.

sharvin-vittappan commented 3 weeks ago

Thank you @rascani . Even if I have additional library from Qualcomm and define HEXAGON_TFLM_LIB, I am getting an error saying

*_tensorflow/lite/micro/tools/make/Makefile:653: Incorrect OPTIMIZED_KERNELDIR: The optimized kernel directory: tensorflow/lite/micro/kernels/hexagon does not exist.. Stop.****