Skip to contentSkip to conversation

add ARM NN machine learning SDK

PATCH New Qin Su 1 participant 4 messages Sep 7, 2018

lore
Share & tools
lore

Qin Su

author
#0 lore raw

v5 cover add ARM NN machine learning SDK

V5 changes:
Fixed comments in armnn-caffe and armnn-tensorflow.

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     | 18 ++++++
 .../armnn-tensorflow/armnn-tensorflow.bb           | 22 +++++++
 .../generate_tensorflow_protobuf.sh                | 73 ++++++++++++++++++++++
 meta-arago-extras/recipes-support/armnn/armnn.bb   | 47 ++++++++++++++
 .../armnn/0001-stdlib-issue-work-around.patch      | 55 ++++++++++++++++
 5 files changed, 215 insertions(+)
 create mode 100644 meta-arago-extras/recipes-support/armnn-caffe/armnn-caffe.bb
 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
author
#1 lore raw

PATCH v5 1/3 armnn-caffe: caffe protobuf files used in building caffe models in armnn.

Caffe protobuf files used in building caffe network models in armnn.

---
 .../recipes-support/armnn-caffe/armnn-caffe.bb         | 18 ++++++++++++++++++
 1 file changed, 18 insertions(+)
 create mode 100644 meta-arago-extras/recipes-support/armnn-caffe/armnn-caffe.bb
meta-arago-extras/recipes-support/armnn-caffe/armnn-caffe.bb new file +18 -0
new file mode 100644
index 0000000..7fbd478
@@ -0,0 +1,18 @@
+DESCRIPTION = "Caffe protobuf files - used in ARMNN for Caffe network models"
+LICENSE = "BSD"
+LIC_FILES_CHKSUM = "file://README.md;md5=01b8fd7c1b9506378a45200f64d6e0d7"
+
+SRC_URI = " \
+    git://git.ti.com/tidl/tidl-utils; \
+"
+
+SRCREV = "3af595c1b67f44c22d4ace7374c42842c0e35af5"
+
+S = "${WORKDIR}/git"
+
+do_install() {
+        install -d ${D}${datadir}/${PN}/caffe/proto/
+	cp ${S}/caffeImport/* ${D}${datadir}/${PN}/caffe/proto/.
+}
+
+
Signature · 1 line
1.9.1
author
#2 lore raw

PATCH v5 2/3 armnn-tensorflow: tensorflow protobuf files used in building tensorflow models in armnn.

In reply to Qin Su

Tensorflow protobuf files used in building tensorflow network models in armnn.

---
 .../armnn-tensorflow/armnn-tensorflow.bb           | 22 +++++++
 .../generate_tensorflow_protobuf.sh                | 73 ++++++++++++++++++++++
 2 files changed, 95 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 +22 -0
new file mode 100644
index 0000000..514b363
@@ -0,0 +1,22 @@
+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} \
+"
+
+SRCREV = "aed8f42bafabf11c5d92ce4109a5e0408b31f9c5"
+
+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} 
+}
+
+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
author
#3 lore raw

PATCH v5 3/3 armnn: ARM NN machine learning SDK.

In reply to Qin Su

Arm 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
new file mode 100644
index 0000000..6ecf633
@@ -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 \
+           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