/meta-tensorflow-lite

Yocto layer for TensorFlow Lite interpreter with Python / C++.

Primary LanguageBitBakeMIT LicenseMIT

meta-tensorflow-lite

Yocto layer for the TensorFlow Lite interpreter with Python / C++.

The official website is:

Reference

Available BSP

Please note that it is not official support.

BSP Build status
meta-raspberrypi Bitbake raspberrypi
meta-riscv Bitbake qemuriscv

Available recipes

How to

Quick start for the Raspberry Pi AArch64 (core-image-weston)

# Clone repositories and oe-init-build-env
$ git clone git://git.yoctoproject.org/poky.git
$ git clone git://git.yoctoproject.org/meta-raspberrypi
$ git clone git://git.openembedded.org/meta-openembedded
$ git clone https://github.com/NobuoTsukamoto/meta-tensorflow-lite.git
$ source poky/oe-init-build-env build

# Add layer
$ bitbake-layers add-layer ../meta-openembedded/meta-oe/
$ bitbake-layers add-layer ../meta-openembedded/meta-python/
$ bitbake-layers add-layer ../meta-openembedded/meta-networking/
$ bitbake-layers add-layer ../meta-openembedded/meta-multimedia/
$ bitbake-layers add-layer ../meta-raspberrypi/
$ bitbake-layers add-layer ../meta-tensorflow-lite/

# Add the package to 'conf/auto.conf' file. 
FORTRAN:forcevariable = ",fortran"
MACHINE ?= "raspberrypi4-64"
IMAGE_INSTALL:append = " python3-tensorflow-lite libtensorflow-lite"

# Build
$ bitbake core-image-weston

Quick start for the qemuriscv64

# Clone repositories and oe-init-build-env
$ git clone https://github.com/openembedded/bitbake.git
$ git clone https://github.com/openembedded/openembedded-core.git
$ git clone https://github.com/openembedded/meta-openembedded.git
$ git clone https://github.com/riscv/meta-riscv.git
$ git clone https://github.com/NobuoTsukamoto/meta-tensorflow-lite.git
$ source openembedded-core/oe-init-build-env build

# Add layer
$ bitbake-layers add-layer ../meta-openembedded/meta-oe/
$ bitbake-layers add-layer ../meta-openembedded/meta-python/
$ bitbake-layers add-layer ../meta-openembedded/meta-networking/
$ bitbake-layers add-layer ../meta-openembedded/meta-multimedia/
$ bitbake-layers add-layer ../meta-riscv/
$ bitbake-layers add-layer ../meta-tensorflow-lite/

# Add the package to 'conf/auto.conf' file. 
FORTRAN:forcevariable = ",fortran"
MACHINE ?= "qemuriscv64"
IMAGE_INSTALL:append = " python3-tensorflow-lite  libtensorflow-lite"

# Build
$ bitbake core-image-full-cmdline