Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to use libtensorflow-lite.a on Raspi 3?

I want to install TensorFlow Lite on the Raspi.

I assume I can first pip install the prebuilt TensorFlow for the Raspi. I'm reading the instructions to cross compile TensorFlow Lite here, but I have no idea what to do after generating libtensorflow-lite.a.

like image 224
Benjamin Tan Wei Hao Avatar asked Oct 04 '18 00:10

Benjamin Tan Wei Hao


People also ask

Can I run TensorFlow in Raspberry Pi?

TensorFlow is a large software library specially developed for deep learning. It consumes a vast amount of resources. You can execute TensorFlow on a Raspberry Pi 4, but don't expect miracles. It can run your models, if not too complex, but it will not be able to train new models.


1 Answers

The libtensorflow-lite.a should be used for C++ inference code.

There is a minimal example of TFLite. You can find Makefile from here. You might also want to check C++ API doc.

like image 97
Terry Heo Avatar answered Sep 25 '22 21:09

Terry Heo