如何在 Raspi 3 上使用 libtensorflow-lite.a?

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

我想在 Raspi 上安装 TensorFlow Lite。

我假设我可以先 pip install 为 Raspi 预构建的 TensorFlow。我正在阅读交叉编译 TensorFlow Lite here 的说明,但我不知道生成 libtensorflow-lite.a.

后要做什么

libtensorflow-lite.a 应该用于 C++ 推理代码。

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