如何在 raspberry pi 4 运行 Manjaro 上安装 tensorflow

How to install tensorflow on a raspberry pi 4 running Manjaro

我正在尝试在 raspberry pi 4 上安装 tensorflow,即 运行 manjaro。它是使用开源 BNN 库 Larq,它推荐 manjaro 作为 OS 因为它是 64 位而不是 Raspbian。我尝试使用 Archlinux 用户存储库中的 yay 安装,但出现了几个不同的错误,例如:“tensorflow/workspace.bzl: 补丁不适用”和下载失败。任何建议,我对 manjaro 很陌生。

附带说明一下,我不是特别喜欢 Manjaro 是否有人有在 RPi4 上使用 Larq 和 larq 计算引擎的经验OS 任何见解也会有所帮助。

谢谢!

我无法在 Manjaro 方面帮助您。但是,我在我的 RPI4 上使用了 Ubuntu 20.04(64 位)。我想您需要 RPI4 来部署和 运行 您的 BNN。如果我是正确的,我给你以下建议。

请注意,只有 运行 LCE 型号 (*.tflite) 才需要 RPI4。为此,您无需在 RPI4 上安装 Tensorflow。 对于其他所有内容(见下文),您可以使用常规 Linux 框。

要检查您的 运行 时间环境(即 RPI4)是否一切正常,您可以使用主 Larq+LCE 安装到 convert one of your models into an LCE model and test it with the benchmark tool available here。对于 RPI4+Ubuntu 你应该使用 lce_benchmark_model_aarch64.

如果您需要为您的 RPI4 编译您自己的 BNN-based 应用程序,您可以按照 LCE 网站上的构建指南进行操作。我很久以前做过一次。我使用了 LCE Docker to have a working environment. Then, from the inside of the docker, I followed the ARM guide: "Cross-compiling with Make" 版本。

希望对您有所帮助。