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.77k stars 778 forks source link

TFlite on xtensa lx7 #2621

Closed devapriyas2001 closed 1 week ago

devapriyas2001 commented 1 week ago

Hi, I need to compile tensorflow lite on xtensa lx7 platform. Currently, I used cross compilation information from tflite documentation but build errors (file not found errors, undefined references, syntax errors) are generated. Please provide instruction on the build steps. Also, how to find the compatible EDK version for the device and tflite?

devapriyas2001 commented 1 week ago

cross compilation : cmake -DCMAKE_C_COMPILER=${XTENSA_PREFIX}/clang -DCMAKE_CXX_COMPILER=${XTENSA_PREFIX}/clang++ -DCMAKE_C_FLAGS="${XTENSA_FLAGS}" -DCMAKE_CXX_FLAGS="${XTENSA_FLAGS}" -DCMAKE_VERBOSE_MAKEFILE:BOOL=ON -DCMAKE_SYSTEM_NAME=Linux -DCMAKE_SYSTEM_PROCESSOR=xtensa -DCMAKE_THREAD_LIBS_INIT="-lpthread" -DCMAKE_HAVE_THREADS_LIBRARY=1 -DCMAKE_USE_PTHREADS_INIT=1 -DTHREADS_PREFER_PTHREAD_FLAG=ON
../tensorflow_src/tensorflow/lite

build: cmake --build . -j

rascani commented 1 week ago

I would suggest trying here: https://github.com/tensorflow/tensorflow/issues