Skip to contentSkip to conversation

packagegroup-arago-tisdk-addons: add tensorflow-lite

PATCH In review Hongmei Gou 3 participants 5 messages Mar 6, 2020 – Mar 10, 2020

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 packagegroup-arago-tisdk-addons: add tensorflow-lite

* This is for including the examples built from the tensforflow lite package to the target filesystem at usr/share/tensorflow-lite/examples

* As tensorflow-lite is creating static library, tensorflow-lite-demo which depends on tensorflow-lite will not bring in the examples folder for tensorflow-lite to the target filesystem

---
This is applicable to thud only, since zeus/master is now using ti-analytics.bb

 .../packagegroups/packagegroup-arago-tisdk-addons.bb        | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)
meta-arago-distro/recipes-core/packagegroups/packagegroup-arago-tisdk-addons.bb +5 -1
index 583d2c0b..ff34ab95 100644
@@ -1,6 +1,6 @@
 DESCRIPTION = "Task to install additional utilities/demos for SDKs"
 LICENSE = "MIT"
-PR = "r77"
+PR = "r78"
 
 PACKAGE_ARCH = "${MACHINE_ARCH}"
 
@@ -153,6 +153,7 @@ ARMNN_PACKAGES = "armnn"
 EXTRA_PACKAGES_append_ti33x = " voxelsdk \
                                 arm-compute-library \
                                 ${ARMNN_PACKAGES} \
+                                tensorflow-lite \
                                 tensorflow-lite-demo \
                                 pdm-anomaly-detection \
 "
@@ -160,6 +161,7 @@ EXTRA_PACKAGES_append_ti33x = " voxelsdk \
 EXTRA_PACKAGES_append_ti43x = " voxelsdk \
                                 arm-compute-library \
                                 ${ARMNN_PACKAGES} \
+                                tensorflow-lite \
                                 tensorflow-lite-demo \
                                 pdm-anomaly-detection \
 "
@@ -169,12 +171,14 @@ EXTRA_PACKAGES_append_omap-a15 = " voxelsdk \
                                    big-data-ipc-demo-linux-firmware \
                                    arm-compute-library \
                                    ${ARMNN_PACKAGES} \
+                                   tensorflow-lite \
                                    tensorflow-lite-demo \
                                    pdm-anomaly-detection \
 "
 
 EXTRA_PACKAGES_append_am65xx = " arm-compute-library \
                              ${ARMNN_PACKAGES} \
+                             tensorflow-lite \
                              tensorflow-lite-demo \
                              pdm-anomaly-detection \
 "
Signature · 1 line
2.17.1
#1 lore raw
Quoted 6 lines · Hongmei Gou

* This is for including the examples built from the tensforflow lite package to the target filesystem at usr/share/tensorflow-lite/examples

* As tensorflow-lite is creating static library, tensorflow-lite-demo which depends on tensorflow-lite will not bring in the examples folder for tensorflow-lite to the target filesystem

Not really clear from this description - do you package examples in a separate package? Then you need to list that package in RDEPENDS packagegroup below. Otherwise the standard depency from demo package should be fine.

Denys

Quoted 57 lines

---
This is applicable to thud only, since zeus/master is now using ti-analytics.bb

 .../packagegroups/packagegroup-arago-tisdk-addons.bb        | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)
meta-arago-distro/recipes-core/packagegroups/packagegroup-arago-tisdk-addons.bb +5 -1
index 583d2c0b..ff34ab95 100644
@@ -1,6 +1,6 @@
 DESCRIPTION = "Task to install additional utilities/demos for SDKs"
 LICENSE = "MIT"
-PR = "r77"
+PR = "r78"
 
 PACKAGE_ARCH = "${MACHINE_ARCH}"
 
@@ -153,6 +153,7 @@ ARMNN_PACKAGES = "armnn"
 EXTRA_PACKAGES_append_ti33x = " voxelsdk \
                                 arm-compute-library \
                                 ${ARMNN_PACKAGES} \
+                                tensorflow-lite \
                                 tensorflow-lite-demo \
                                 pdm-anomaly-detection \
 "
@@ -160,6 +161,7 @@ EXTRA_PACKAGES_append_ti33x = " voxelsdk \
 EXTRA_PACKAGES_append_ti43x = " voxelsdk \
                                 arm-compute-library \
                                 ${ARMNN_PACKAGES} \
+                                tensorflow-lite \
                                 tensorflow-lite-demo \
                                 pdm-anomaly-detection \
 "
@@ -169,12 +171,14 @@ EXTRA_PACKAGES_append_omap-a15 = " voxelsdk \
                                    big-data-ipc-demo-linux-firmware \
                                    arm-compute-library \
                                    ${ARMNN_PACKAGES} \
+                                   tensorflow-lite \
                                    tensorflow-lite-demo \
                                    pdm-anomaly-detection \
 "
 
 EXTRA_PACKAGES_append_am65xx = " arm-compute-library \
                              ${ARMNN_PACKAGES} \
+                             tensorflow-lite \
                              tensorflow-lite-demo \
                              pdm-anomaly-detection \
 "
Signature · 6 lines
2.17.1

_______________________________________________
meta-arago mailing list
[email protected]
http://arago-project.org/cgi-bin/mailman/listinfo/meta-arago
#2 lore raw
Quoted 12 lines

-----Original Message-----
From: Dmytriyenko, Denys
Sent: Friday, March 6, 2020 1:27 PM
To: Gou, Hongmei
Cc: [email protected]
Subject: Re: [meta-arago] [thud] [PATCH] packagegroup-arago-tisdk-addons:
add tensorflow-lite

Quoted 3 lines · Hongmei Gou

* This is for including the examples built from the tensforflow lite package to the target filesystem at usr/share/tensorflow-lite/examples

Quoted 8 lines
Quoted 3 lines

* As tensorflow-lite is creating static library, tensorflow-lite-demo which depends on tensorflow-lite will not bring in the examples folder for tensorflow-lite to the target filesystem

Not really clear from this description - do you package examples in a separate package? Then you need to list that package in RDEPENDS packagegroup below.
Otherwise the standard depency from demo package should be fine.

There used to be a separate tensorflow-lite-examples package for the examples. The examples got in the tensorflow-lite package after changing the target location to /usr/share/tensorflow-lite. So, the current tensorflow-lite package itself contains the examples (console output).

On the other hand, we newly introduced the tensorflow-lite-demo package which contains demos with GUI display, and it depends on tensorflow-lite.

Quoted 67 lines

Denys

Quoted 3 lines

---
This is applicable to thud only, since zeus/master is now using ti-

analytics.bb

Review

Quoted 5 lines
 .../packagegroups/packagegroup-arago-tisdk-addons.bb        | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)
(quoted diff) +0 -0

arago-tisdk-addons.bb b/meta-arago-distro/recipes- core/packagegroups/packagegroup-arago-tisdk-addons.bb

Quoted 2 lines

index 583d2c0b..ff34ab95 100644
--- a/meta-arago-distro/recipes-core/packagegroups/packagegroup-arago-

tisdk-addons.bb

Quoted 1 line

+++ b/meta-arago-distro/recipes-core/packagegroups/packagegroup-

arago-tisdk-addons.bb

meta-arago-distro/recipes-core/packagegroups/packagegroup-arago-tisdk-addons.bb EXTRA_PACKAGES_append_omap-a15 = "

Quoted 25 lines
meta-arago-distro/recipes-core/packagegroups/packagegroup-arago-tisdk-addons.bb +3 -1
@@ -1,6 +1,6 @@
 DESCRIPTION = "Task to install additional utilities/demos for SDKs"
 LICENSE = "MIT"
-PR = "r77"
+PR = "r78"
 
 PACKAGE_ARCH = "${MACHINE_ARCH}"
 
@@ -153,6 +153,7 @@ ARMNN_PACKAGES = "armnn"
 EXTRA_PACKAGES_append_ti33x = " voxelsdk \
                                 arm-compute-library \
                                 ${ARMNN_PACKAGES} \
+                                tensorflow-lite \
                                 tensorflow-lite-demo \
                                 pdm-anomaly-detection \
 "
@@ -160,6 +161,7 @@ EXTRA_PACKAGES_append_ti33x = " voxelsdk \
 EXTRA_PACKAGES_append_ti43x = " voxelsdk \
                                 arm-compute-library \
                                 ${ARMNN_PACKAGES} \
+                                tensorflow-lite \
                                 tensorflow-lite-demo \
                                 pdm-anomaly-detection \
 "
@@ -169,12 +171,14 @@ EXTRA_PACKAGES_append_omap-a15 = "

voxelsdk \

Quoted 21 lines
meta-arago-distro/recipes-core/packagegroups/packagegroup-arago-tisdk-addons.bb +2 -1
                                    big-data-ipc-demo-linux-firmware \
                                    arm-compute-library \
                                    ${ARMNN_PACKAGES} \
+                                   tensorflow-lite \
                                    tensorflow-lite-demo \
                                    pdm-anomaly-detection \
 "
 
 EXTRA_PACKAGES_append_am65xx = " arm-compute-library \
                              ${ARMNN_PACKAGES} \
+                             tensorflow-lite \
                              tensorflow-lite-demo \
                              pdm-anomaly-detection \
 "
--

2.17.1

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

#3 lore raw
Quoted 21 lines · Hongmei
Quoted 12 lines

-----Original Message-----
From: Dmytriyenko, Denys
Sent: Friday, March 6, 2020 1:27 PM
To: Gou, Hongmei
Cc: [email protected]
Subject: Re: [meta-arago] [thud] [PATCH] packagegroup-arago-tisdk-addons:
add tensorflow-lite

Quoted 3 lines · Hongmei Gou

* This is for including the examples built from the tensforflow lite package to the target filesystem at usr/share/tensorflow-lite/examples

Quoted 8 lines
Quoted 3 lines

* As tensorflow-lite is creating static library, tensorflow-lite-demo which depends on tensorflow-lite will not bring in the examples folder for tensorflow-lite to the target filesystem

Not really clear from this description - do you package examples in a separate package? Then you need to list that package in RDEPENDS packagegroup below.
Otherwise the standard depency from demo package should be fine.

Quoted 7 lines

There used to be a separate tensorflow-lite-examples package for the examples. The examples got in the tensorflow-lite package after changing the target location to /usr/share/tensorflow-lite. So, the current tensorflow-lite package itself contains the examples (console output).

On the other hand, we newly introduced the tensorflow-lite-demo package which contains demos with GUI display, and it depends on tensorflow-lite.

Sorry for the delay.

So, tensorflow-lite-demo links *statically* against tensorflow-lite and hence there's no RDEPENDS preserved, which was expected to be there for the proper packaging to work...

Is static linking the expected behavior? Are there plans to link dynamically?

Second question - should examples from tensorflow-lite still be packaged separately? I understand they got moved and now picked up by the main package automatically. But there is an easy way to get the old behavior by prepending examples package to the PACKAGES list, instead of appending.

I guess I can merge this to thud as is, but would like to clean this up going forward, so please answer above questions anyway. Thanks!

Denys

Quoted 63 lines
Quoted 63 lines
Quoted 3 lines

---
This is applicable to thud only, since zeus/master is now using ti-

analytics.bb

Review

Quoted 5 lines
 .../packagegroups/packagegroup-arago-tisdk-addons.bb        | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)
(quoted diff) +0 -0

arago-tisdk-addons.bb b/meta-arago-distro/recipes- core/packagegroups/packagegroup-arago-tisdk-addons.bb

Quoted 2 lines

index 583d2c0b..ff34ab95 100644
--- a/meta-arago-distro/recipes-core/packagegroups/packagegroup-arago-

tisdk-addons.bb

Quoted 1 line

+++ b/meta-arago-distro/recipes-core/packagegroups/packagegroup-

arago-tisdk-addons.bb

meta-arago-distro/recipes-core/packagegroups/packagegroup-arago-tisdk-addons.bb EXTRA_PACKAGES_append_omap-a15 = "

Quoted 25 lines
meta-arago-distro/recipes-core/packagegroups/packagegroup-arago-tisdk-addons.bb +3 -1
@@ -1,6 +1,6 @@
 DESCRIPTION = "Task to install additional utilities/demos for SDKs"
 LICENSE = "MIT"
-PR = "r77"
+PR = "r78"
 
 PACKAGE_ARCH = "${MACHINE_ARCH}"
 
@@ -153,6 +153,7 @@ ARMNN_PACKAGES = "armnn"
 EXTRA_PACKAGES_append_ti33x = " voxelsdk \
                                 arm-compute-library \
                                 ${ARMNN_PACKAGES} \
+                                tensorflow-lite \
                                 tensorflow-lite-demo \
                                 pdm-anomaly-detection \
 "
@@ -160,6 +161,7 @@ EXTRA_PACKAGES_append_ti33x = " voxelsdk \
 EXTRA_PACKAGES_append_ti43x = " voxelsdk \
                                 arm-compute-library \
                                 ${ARMNN_PACKAGES} \
+                                tensorflow-lite \
                                 tensorflow-lite-demo \
                                 pdm-anomaly-detection \
 "
@@ -169,12 +171,14 @@ EXTRA_PACKAGES_append_omap-a15 = "

voxelsdk \

Quoted 21 lines
meta-arago-distro/recipes-core/packagegroups/packagegroup-arago-tisdk-addons.bb +2 -1
                                    big-data-ipc-demo-linux-firmware \
                                    arm-compute-library \
                                    ${ARMNN_PACKAGES} \
+                                   tensorflow-lite \
                                    tensorflow-lite-demo \
                                    pdm-anomaly-detection \
 "
 
 EXTRA_PACKAGES_append_am65xx = " arm-compute-library \
                              ${ARMNN_PACKAGES} \
+                             tensorflow-lite \
                              tensorflow-lite-demo \
                              pdm-anomaly-detection \
 "
--

2.17.1

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

#4 lore raw
Quoted 46 lines

-----Original Message-----
From: Dmytriyenko, Denys
Sent: Tuesday, March 10, 2020 11:35 AM
To: Gou, Hongmei
Cc: [email protected]
Subject: Re: [meta-arago] [thud] [PATCH] packagegroup-arago-tisdk-addons:
add tensorflow-lite

Quoted 6 lines · Hongmei
Quoted 6 lines

-----Original Message-----
From: Dmytriyenko, Denys
Sent: Friday, March 6, 2020 1:27 PM
To: Gou, Hongmei
Cc: [email protected]
Subject: Re: [meta-arago] [thud] [PATCH] packagegroup-arago-tisdk-

addons:

Quoted 4 lines
Quoted 4 lines

add tensorflow-lite

Quoted 1 line · Hongmei Gou

* This is for including the examples built from the tensforflow lite

package

Quoted 3 lines
Quoted 3 lines
Quoted 3 lines

to the target filesystem at usr/share/tensorflow-lite/examples

* As tensorflow-lite is creating static library, tensorflow-lite-demo

which

Quoted 4 lines
Quoted 4 lines
Quoted 2 lines

depends on tensorflow-lite will not bring in the examples folder for tensorflow-lite to the target filesystem

Not really clear from this description - do you package examples in a

separate

Quoted 5 lines
Quoted 3 lines

package? Then you need to list that package in RDEPENDS packagegroup below.
Otherwise the standard depency from demo package should be fine.

There used to be a separate tensorflow-lite-examples package for the

examples.

Quoted 1 line

The examples got in the tensorflow-lite package after changing the target

location

Quoted 1 line

to /usr/share/tensorflow-lite. So, the current tensorflow-lite package itself

contains

Quoted 3 lines

the examples (console output).

On the other hand, we newly introduced the tensorflow-lite-demo

package which

Quoted 1 line

contains demos with GUI display, and it depends on tensorflow-lite.

Quoted 8 lines

Sorry for the delay.

So, tensorflow-lite-demo links *statically* against tensorflow-lite and hence there's no RDEPENDS preserved, which was expected to be there for the proper
packaging to work...

Is static linking the expected behavior? Are there plans to link dynamically?

Yes, the static linking is expected - the upstream tensorflow lite package is creating static library. No plan to use dynamical linking for this quarter's release.

Quoted 7 lines

Second question - should examples from tensorflow-lite still be packaged separately? I understand they got moved and now picked up by the main package
automatically. But there is an easy way to get the old behavior by prepending examples package to the PACKAGES list, instead of appending.

Agree with you that moving the examples back as a separate tensorflow-lite-examples package is a better solution.

Quoted 3 lines

I guess I can merge this to thud as is, but would like to clean this up going forward, so please answer above questions anyway. Thanks!

Thanks for merging this to thud!

Quoted 69 lines

Denys

Quoted 9 lines
Quoted 9 lines
Quoted 3 lines

---
This is applicable to thud only, since zeus/master is now using ti-

analytics.bb

Review

Quoted 5 lines
 .../packagegroups/packagegroup-arago-tisdk-addons.bb        | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)
(quoted diff) +0 -0

core/packagegroups/packagegroup-

Quoted 4 lines
Quoted 4 lines

arago-tisdk-addons.bb b/meta-arago-distro/recipes- core/packagegroups/packagegroup-arago-tisdk-addons.bb

Quoted 2 lines

index 583d2c0b..ff34ab95 100644
--- a/meta-arago-distro/recipes-core/packagegroups/packagegroup-

arago-

Quoted 50 lines
Quoted 50 lines

tisdk-addons.bb

Quoted 1 line

+++ b/meta-arago-distro/recipes-core/packagegroups/packagegroup-

arago-tisdk-addons.bb

meta-arago-distro/recipes-core/packagegroups/packagegroup-arago-tisdk-addons.bb EXTRA_PACKAGES_append_omap-a15 = "

Quoted 25 lines
meta-arago-distro/recipes-core/packagegroups/packagegroup-arago-tisdk-addons.bb +3 -1
@@ -1,6 +1,6 @@
 DESCRIPTION = "Task to install additional utilities/demos for SDKs"
 LICENSE = "MIT"
-PR = "r77"
+PR = "r78"
 
 PACKAGE_ARCH = "${MACHINE_ARCH}"
 
@@ -153,6 +153,7 @@ ARMNN_PACKAGES = "armnn"
 EXTRA_PACKAGES_append_ti33x = " voxelsdk \
                                 arm-compute-library \
                                 ${ARMNN_PACKAGES} \
+                                tensorflow-lite \
                                 tensorflow-lite-demo \
                                 pdm-anomaly-detection \
 "
@@ -160,6 +161,7 @@ EXTRA_PACKAGES_append_ti33x = " voxelsdk \
 EXTRA_PACKAGES_append_ti43x = " voxelsdk \
                                 arm-compute-library \
                                 ${ARMNN_PACKAGES} \
+                                tensorflow-lite \
                                 tensorflow-lite-demo \
                                 pdm-anomaly-detection \
 "
@@ -169,12 +171,14 @@ EXTRA_PACKAGES_append_omap-a15 = "

voxelsdk \

Quoted 21 lines
meta-arago-distro/recipes-core/packagegroups/packagegroup-arago-tisdk-addons.bb +2 -1
                                    big-data-ipc-demo-linux-firmware \
                                    arm-compute-library \
                                    ${ARMNN_PACKAGES} \
+                                   tensorflow-lite \
                                    tensorflow-lite-demo \
                                    pdm-anomaly-detection \
 "
 
 EXTRA_PACKAGES_append_am65xx = " arm-compute-library \
                              ${ARMNN_PACKAGES} \
+                             tensorflow-lite \
                              tensorflow-lite-demo \
                              pdm-anomaly-detection \
 "
--

2.17.1

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