add ARM NN machine learning SDK
v2 cover add ARM NN machine learning SDK
V2 Changes:
In armnn-tensorflow recipe, download needed file instead of local copy.
Qin Su (3):
armnn-caffe: caffe protobuf files used in building caffe models in
armnn.
armnn-tensorflow: tensorflow protobuf files used in building
tensorflow models in armnn.
armnn: ARM NN machine learning SDK.
.../recipes-support/armnn-caffe/armnn-caffe.bb | 15 + .../armnn-caffe/armnn-caffe/LICENSE | 44 + .../armnn-caffe/armnn-caffe/caffe.pb.cc | 76404 +++++++++++++++++++ .../armnn-caffe/armnn-caffe/caffe.pb.h | 42737 +++++++++++ .../armnn-tensorflow/armnn-tensorflow.bb | 29 + .../generate_tensorflow_protobuf.sh | 73 + meta-arago-extras/recipes-support/armnn/armnn.bb | 47 + .../armnn/0001-stdlib-issue-work-around.patch | 55 + 8 files changed, 119404 insertions(+) create mode 100644 meta-arago-extras/recipes-support/armnn-caffe/armnn-caffe.bb create mode 100644 meta-arago-extras/recipes-support/armnn-caffe/armnn-caffe/LICENSE create mode 100644 meta-arago-extras/recipes-support/armnn-caffe/armnn-caffe/caffe.pb.cc create mode 100644 meta-arago-extras/recipes-support/armnn-caffe/armnn-caffe/caffe.pb.h create mode 100644 meta-arago-extras/recipes-support/armnn-tensorflow/armnn-tensorflow.bb create mode 100644 meta-arago-extras/recipes-support/armnn-tensorflow/armnn-tensorflow/generate_tensorflow_protobuf.sh create mode 100644 meta-arago-extras/recipes-support/armnn/armnn.bb create mode 100644 meta-arago-extras/recipes-support/armnn/armnn/0001-stdlib-issue-work-around.patch
Signature · 1 line
1.9.1
PATCH v2 2/3 armnn-tensorflow: tensorflow protobuf files used in building tensorflow models in armnn.
Tensorflow protobuf files built with protobuf version 3.2.0 and used in building tensorflow network models in armnn.
--- .../armnn-tensorflow/armnn-tensorflow.bb | 29 +++++++++ .../generate_tensorflow_protobuf.sh | 73 ++++++++++++++++++++++ 2 files changed, 102 insertions(+) create mode 100644 meta-arago-extras/recipes-support/armnn-tensorflow/armnn-tensorflow.bb create mode 100644 meta-arago-extras/recipes-support/armnn-tensorflow/armnn-tensorflow/generate_tensorflow_protobuf.sh
meta-arago-extras/recipes-support/armnn-tensorflow/armnn-tensorflow.bb new file +29 -0
@@ -0,0 +1,29 @@ +DESCRIPTION = "Tensorflow protobuf files - used in ARMNN for Tensorflow network models" +LICENSE = "Apache" +LIC_FILES_CHKSUM = "file://LICENSE;md5=01e86893010a1b87e69a213faa753ebd" + +SRC_URI = " \ + git://github.com/tensorflow/tensorflow.git \ + file://generate_tensorflow_protobuf.sh;subdir=${S} \ +" + +SRC_URI += " \ + https://github.com/protocolbuffers/protobuf/releases/download/v3.2.0/protoc-3.2.0-linux-x86_64.zip;name=protoc;subdir=${WORKDIR}/protoc;destsuffix=protoc \ +" + +SRCREV = "aed8f42bafabf11c5d92ce4109a5e0408b31f9c5" + +SRC_URI[protoc.md5sum] = "f0b567f781665f47afd6b5afa53cee3d" +SRC_URI[protoc.sha256sum] = "9cf9a8661d649b8477fe0ad32a8b28d351a170a62e210bf848d90a29f1f4df9d" + +S = "${WORKDIR}/git" + +do_install() { + install -d ${D}${datadir}/${PN} + chmod +x ${S}/generate_tensorflow_protobuf.sh + ${S}/generate_tensorflow_protobuf.sh ${D}${datadir}/${PN} ${WORKDIR}/protoc +} + +PACKAGES =+ "${PN}-source" +FILES_${PN}-source = "${datadir}/${PN}" +
meta-arago-extras/recipes-support/armnn-tensorflow/armnn-tensorflow/generate_tensorflow_protobuf.sh new file +73 -0
73 lines not on this page · raw message
Signature · 1 line
1.9.1
PATCH v2 3/3 armnn: ARM NN machine learning SDK.
In reply to Qin SuArm NN SDK is a set of open-source Linux software and tools that enables machine learning workloads on power-efficient devices. Arm NN takes Caffe, TensorFlow network frameworks, translate them to the internal Arm NN formatand then, through the Compute Library, deploy them efficiently on Cortex-A CPUs.
--- meta-arago-extras/recipes-support/armnn/armnn.bb | 47 ++++++++++++++++++ .../armnn/0001-stdlib-issue-work-around.patch | 55 ++++++++++++++++++++++ 2 files changed, 102 insertions(+) create mode 100644 meta-arago-extras/recipes-support/armnn/armnn.bb create mode 100644 meta-arago-extras/recipes-support/armnn/armnn/0001-stdlib-issue-work-around.patch
meta-arago-extras/recipes-support/armnn/armnn.bb new file +47 -0
@@ -0,0 +1,47 @@ +DESCRIPTION = "Linux software and tools to enable machine learning (Caffe/Tensorflow) workloads on power-efficient devices" +LICENSE = "MIT" +LIC_FILES_CHKSUM = "file://LICENSE;md5=3e14a924c16f7d828b8335a59da64074" + +SRCREV = "4c7098bfeab1ffe1cdc77f6c15548d3e73274746" + +S = "${WORKDIR}/git" + +FILES_${PN}-dev += "{libdir}/cmake/*" + +inherit cmake + +SRC_URI = " \ + git://github.com/ARM-software/armnn.git \ + file://0001-stdlib-issue-work-around.patch \ +" + +DEPENDS = " \ + boost \ + protobuf-tidl \ + stb \ + arm-compute-library \ + armnn-caffe \ + armnn-tensorflow \ +" + +EXTRA_OECMAKE=" \ + -DBUILD_SHARED_LIBS=ON -DREGISTER_INSTALL_PREFIX=OFF \ + -DARMCOMPUTE_ROOT=${STAGING_DIR_HOST}${datadir}/arm-compute-library \ + -DARMCOMPUTE_BUILD_DIR=${STAGING_DIR_HOST}${datadir}/arm-compute-library/build \ + -DCAFFE_GENERATED_SOURCES=${STAGING_DIR_HOST}${datadir}/armnn-caffe \ + -DTF_GENERATED_SOURCES=${STAGING_DIR_HOST}${datadir}/armnn-tensorflow \ + -DBUILD_CAFFE_PARSER=1 -DBUILD_TF_PARSER=1 \ + -DARMCOMPUTENEON=1 \ + -DBUILD_TESTS=1 -DPROFILING=1 \ + -DTHIRD_PARTY_INCLUDE_DIRS=${STAGING_DIR_HOST}${includedir} \ +" + +CXXFLAGS += "-fopenmp" +LIBS += "-larmpl_lp64_mp" + +INSANE_SKIP_${PN}-dev = "dev-elf" + +PACKAGES =+ "${PN}-bash-completion" +FILES_${PN}-bash-completion += "${bindir}/armnn_completions.sh" +RDEPENDS_${PN}-bash-completion = "bash bash-completion" +
meta-arago-extras/recipes-support/armnn/armnn/0001-stdlib-issue-work-around.patch new file +55 -0
55 lines not on this page · raw message
Signature · 1 line
1.9.1