Skip to contentSkip to conversation

tensorflow-lite: extends to native and nativesdk

PATCH In review Hongmei Gou 2 participants 4 messages Dec 12, 2019 – Dec 17, 2019

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 tensorflow-lite: extends to native and nativesdk

* This is required to build tidl-import-tool to support tensorflow-lite models (floating point only for now)

---
 .../recipes-support/tensorflow-lite/tensorflow-lite_1.15.bb   | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
meta-arago-extras/recipes-support/tensorflow-lite/tensorflow-lite_1.15.bb +3 -1
index 9d07b11b..b238c85e 100644
@@ -41,7 +41,7 @@ SRC_URI[mobilenet_v1_quant.sha256sum] = "d32432d28673a936b2d6281ab0600c71cf7226d
 
 SRCREV = "590d6eef7e91a6a7392c8ffffb7b58f2e0c8bc6b"
 
-PR = "r2"
+PR = "r3"
 
 S = "${WORKDIR}/git"
 
@@ -138,3 +138,5 @@ PACKAGES += "${PN}-examples"
 FILES_${PN}-examples = "${datadir}/${PN}-${PV}/examples"
 
 ALLOW_EMPTY_${PN} = "1"
+
+BBCLASSEXTEND = "native nativesdk"
Signature · 1 line
2.17.1
#1 lore raw

PATCH 2/2 tidl-import: add support for tensorflow-lite floating point models

* The newer version also has the following changes:
1. Bug fixes for ResNet-18 model
2. Conv2d kernel types are automatically set when models are imported, and do not need to be explicitly configured.

---
 .../recipes-ti/tidl-utils/tidl-import_git.bb         | 12 +++++++++---
 .../recipes-ti/tidl-utils/tidl-utils.inc             |  6 +++---
 2 files changed, 12 insertions(+), 6 deletions(-)
meta-arago-extras/recipes-ti/tidl-utils/tidl-import_git.bb +9 -3
index ad1dad13..72ef8773 100644
@@ -9,7 +9,7 @@ LIC_FILES_CHKSUM = "file://modules/ti_dl/inc/itidl_ti.h;beginline=1;endline=34;m
 
 S = "${WORKDIR}/git/src/importTool/"
 
-DEPENDS = "protobuf zlib protobuf-native"
+DEPENDS = "protobuf zlib protobuf-native flatbuffers tensorflow-lite flatbuffers-native tensorflow-lite-native"
 
 EXTRA_OEMAKE += "TIARM_TOOLS=${GCC_ARM_NONE_TOOLCHAIN}"
 EXTRA_OEMAKE += "XDAIS_PATH=${XDAIS_INSTALL_DIR}"
@@ -18,8 +18,14 @@ EXTRA_OEMAKE += "CORE=eve"
 EXTRA_OEMAKE += "TARGET_BUILD=release"
 EXTRA_OEMAKE += "TARGET_PLATFORM=PC"
 
-EXTRA_MAKE_ARGS = "PLATFORM_BUILD=x86 LINUXENV=x86 LINUX_IMPORT_TOOL=64BIT PROTOBUF_LIB_DIR=${STAGING_DIR_NATIVE}/usr/lib PROTOBUF_INC_DIR=${STAGING_DIR_NATIVE}/usr/include"
-EXTRA_MAKE_ARGS_class-target = "LINUX_BUILD_TOOLS=${TOOLCHAIN_PATH}/bin/${TARGET_PREFIX} PROTOBUF_LIB_DIR=${STAGING_LIBDIR} PROTOBUF_INC_DIR=${STAGING_INCDIR} LINUXENV=oearm"
+EXTRA_MAKE_ARGS = "PLATFORM_BUILD=x86 LINUXENV=x86 LINUX_IMPORT_TOOL=64BIT \
+                   PROTOBUF_LIB_DIR=${STAGING_DIR_NATIVE}/usr/lib PROTOBUF_INC_DIR=${STAGING_DIR_NATIVE}/usr/include \
+                   FLATBUFFERS_INC_DIR=${STAGING_DIR_NATIVE}$/usr/include/flatbuffers \
+                   TF_LITE_GENERATED_PATH=${STAGING_DIR_NATIVE}/usr/include/tensorflow/lite/schema"
+EXTRA_MAKE_ARGS_class-target = "LINUX_BUILD_TOOLS=${TOOLCHAIN_PATH}/bin/${TARGET_PREFIX} \
+                                PROTOBUF_LIB_DIR=${STAGING_LIBDIR} PROTOBUF_INC_DIR=${STAGING_INCDIR} \
+                                FLATBUFFERS_INC_DIR=${STAGING_INCDIR}/flatbuffers \
+                                TF_LITE_GENERATED_PATH=${STAGING_INCDIR}/tensorflow/lite/schema LINUXENV=oearm"
 
 EXTRA_OEMAKE += "${EXTRA_MAKE_ARGS}"
 
meta-arago-extras/recipes-ti/tidl-utils/tidl-utils.inc +3 -3
index 1fd3063f..61bb50e6 100644
@@ -1,4 +1,4 @@
 SRC_URI = "git://git.ti.com/tidl/tidl-utils.git;protocol=git;branch=master"
-SRCREV = "c88b229e70db220ddbf394f3e77c3d5930a0e35a"
-PV = "01.01.02.00"
-PR = "r2"
+SRCREV = "99ff282fbc440a68170736e7b5de2ff5a2984386"
+PV = "01.01.03.00"
+PR = "r0"
Signature · 1 line
2.17.1
#2 lore raw

Re: [EXTERNAL] [master/thud/ti2019.05] [PATCH 2/2] tidl-import: add support for tensorflow-lite floating point models

Denys,

Please backport to ti2019.05.

Thank you,
Jake

-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Gou, Hongmei
Sent: Thursday, December 12, 2019 5:40 PM
To: [email protected]
Cc: Gou, Hongmei
Subject: [EXTERNAL] [meta-arago] [master/thud/ti2019.05] [PATCH 2/2] tidl-import: add support for tensorflow-lite floating point models

* The newer version also has the following changes:
1. Bug fixes for ResNet-18 model
2. Conv2d kernel types are automatically set when models are imported, and do not need to be explicitly configured.

---
 .../recipes-ti/tidl-utils/tidl-import_git.bb         | 12 +++++++++---
 .../recipes-ti/tidl-utils/tidl-utils.inc             |  6 +++---
 2 files changed, 12 insertions(+), 6 deletions(-)
meta-arago-extras/recipes-ti/tidl-utils/tidl-import_git.bb +9 -3
index ad1dad13..72ef8773 100644
@@ -9,7 +9,7 @@ LIC_FILES_CHKSUM = "file://modules/ti_dl/inc/itidl_ti.h;beginline=1;endline=34;m
 
 S = "${WORKDIR}/git/src/importTool/"
 
-DEPENDS = "protobuf zlib protobuf-native"
+DEPENDS = "protobuf zlib protobuf-native flatbuffers tensorflow-lite flatbuffers-native tensorflow-lite-native"
 
 EXTRA_OEMAKE += "TIARM_TOOLS=${GCC_ARM_NONE_TOOLCHAIN}"
 EXTRA_OEMAKE += "XDAIS_PATH=${XDAIS_INSTALL_DIR}"
@@ -18,8 +18,14 @@ EXTRA_OEMAKE += "CORE=eve"
 EXTRA_OEMAKE += "TARGET_BUILD=release"
 EXTRA_OEMAKE += "TARGET_PLATFORM=PC"
 
-EXTRA_MAKE_ARGS = "PLATFORM_BUILD=x86 LINUXENV=x86 LINUX_IMPORT_TOOL=64BIT PROTOBUF_LIB_DIR=${STAGING_DIR_NATIVE}/usr/lib PROTOBUF_INC_DIR=${STAGING_DIR_NATIVE}/usr/include"
-EXTRA_MAKE_ARGS_class-target = "LINUX_BUILD_TOOLS=${TOOLCHAIN_PATH}/bin/${TARGET_PREFIX} PROTOBUF_LIB_DIR=${STAGING_LIBDIR} PROTOBUF_INC_DIR=${STAGING_INCDIR} LINUXENV=oearm"
+EXTRA_MAKE_ARGS = "PLATFORM_BUILD=x86 LINUXENV=x86 LINUX_IMPORT_TOOL=64BIT \
+                   PROTOBUF_LIB_DIR=${STAGING_DIR_NATIVE}/usr/lib PROTOBUF_INC_DIR=${STAGING_DIR_NATIVE}/usr/include \
+                   FLATBUFFERS_INC_DIR=${STAGING_DIR_NATIVE}$/usr/include/flatbuffers \
+                   TF_LITE_GENERATED_PATH=${STAGING_DIR_NATIVE}/usr/include/tensorflow/lite/schema"
+EXTRA_MAKE_ARGS_class-target = "LINUX_BUILD_TOOLS=${TOOLCHAIN_PATH}/bin/${TARGET_PREFIX} \
+                                PROTOBUF_LIB_DIR=${STAGING_LIBDIR} PROTOBUF_INC_DIR=${STAGING_INCDIR} \
+                                FLATBUFFERS_INC_DIR=${STAGING_INCDIR}/flatbuffers \
+                                TF_LITE_GENERATED_PATH=${STAGING_INCDIR}/tensorflow/lite/schema LINUXENV=oearm"
 
 EXTRA_OEMAKE += "${EXTRA_MAKE_ARGS}"
 
meta-arago-extras/recipes-ti/tidl-utils/tidl-utils.inc +3 -3
index 1fd3063f..61bb50e6 100644
@@ -1,4 +1,4 @@
 SRC_URI = "git://git.ti.com/tidl/tidl-utils.git;protocol=git;branch=master"
-SRCREV = "c88b229e70db220ddbf394f3e77c3d5930a0e35a"
-PV = "01.01.02.00"
-PR = "r2"
+SRCREV = "99ff282fbc440a68170736e7b5de2ff5a2984386"
+PV = "01.01.03.00"
+PR = "r0"
Signature · 6 lines
2.17.1

_______________________________________________
meta-arago mailing list
[email protected]
http://arago-project.org/cgi-bin/mailman/listinfo/meta-arago
#3 lore raw
In reply to Hongmei Gou

Denys,

Please backport to ti2019.05.

Thank you,
Jake

-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Gou, Hongmei
Sent: Thursday, December 12, 2019 5:40 PM
To: [email protected]
Cc: Gou, Hongmei
Subject: [EXTERNAL] [meta-arago] [master/thud/ti2019.05] [PATCH 1/2] tensorflow-lite: extends to native and nativesdk

* This is required to build tidl-import-tool to support tensorflow-lite models (floating point only for now)

---
 .../recipes-support/tensorflow-lite/tensorflow-lite_1.15.bb   | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
meta-arago-extras/recipes-support/tensorflow-lite/tensorflow-lite_1.15.bb +3 -1
index 9d07b11b..b238c85e 100644
@@ -41,7 +41,7 @@ SRC_URI[mobilenet_v1_quant.sha256sum] = "d32432d28673a936b2d6281ab0600c71cf7226d
 
 SRCREV = "590d6eef7e91a6a7392c8ffffb7b58f2e0c8bc6b"
 
-PR = "r2"
+PR = "r3"
 
 S = "${WORKDIR}/git"
 
@@ -138,3 +138,5 @@ PACKAGES += "${PN}-examples"
 FILES_${PN}-examples = "${datadir}/${PN}-${PV}/examples"
 
 ALLOW_EMPTY_${PN} = "1"
+
+BBCLASSEXTEND = "native nativesdk"
Signature · 6 lines
2.17.1

_______________________________________________
meta-arago mailing list
[email protected]
http://arago-project.org/cgi-bin/mailman/listinfo/meta-arago