<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: eIQ Tensorflow-lite c++ on NPU in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/eIQ-Tensorflow-lite-c-on-NPU/m-p/1196840#M166198</link>
    <description>&lt;P&gt;Were you able to verify that the recipe doesn't have a bug?&lt;/P&gt;</description>
    <pubDate>Wed, 09 Dec 2020 20:15:29 GMT</pubDate>
    <dc:creator>rbanks</dc:creator>
    <dc:date>2020-12-09T20:15:29Z</dc:date>
    <item>
      <title>eIQ Tensorflow-lite c++ on NPU</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/eIQ-Tensorflow-lite-c-on-NPU/m-p/1184655#M165034</link>
      <description>&lt;P&gt;I am developing on an 8Mplus board and have had some issues with TensorFlow-Lite in c++.&lt;/P&gt;&lt;P&gt;I have my own TensorFlow-Lite model and want to utilize it in my c++ application. I have found that the eIQ software installed with Yocto doesn't come with a static library for TensorFlow-lite.&lt;/P&gt;&lt;P&gt;None of the guides describe how to build a Yocto image with a static library for TensorFlow-Lite. I've had to piece parts of several guides in order to even get the TensorFlow-Lite header files.&lt;/P&gt;&lt;P&gt;Is there a known step by step method to build a Yocto image of the imx 8Mplus dev board with a Static Library or some other method of linking the c++ TensorFlow-Lite binaries while allowing TensorFlow-Lite to utilize the NPU?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 17 Nov 2020 17:40:10 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/eIQ-Tensorflow-lite-c-on-NPU/m-p/1184655#M165034</guid>
      <dc:creator>rbanks</dc:creator>
      <dc:date>2020-11-17T17:40:10Z</dc:date>
    </item>
    <item>
      <title>Re: eIQ Tensorflow-lite c++ on NPU</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/eIQ-Tensorflow-lite-c-on-NPU/m-p/1188249#M165434</link>
      <description>&lt;P&gt;Hello rbanks.&lt;/P&gt;
&lt;DIV&gt;I found this info on Yocto User Guide, could you please try adding the following line to your local.conf?&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV class="copy-paste-block"&gt;
&lt;DIV&gt;TOOLCHAIN_TARGET_TASK_append += " tensorflow-lite-staticdev tensorflow-lite-dev"&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;Please, let me know if this works or not for you&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;Regards&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 24 Nov 2020 14:07:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/eIQ-Tensorflow-lite-c-on-NPU/m-p/1188249#M165434</guid>
      <dc:creator>Bio_TICFSL</dc:creator>
      <dc:date>2020-11-24T14:07:32Z</dc:date>
    </item>
    <item>
      <title>Re: eIQ Tensorflow-lite c++ on NPU</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/eIQ-Tensorflow-lite-c-on-NPU/m-p/1191026#M165723</link>
      <description>&lt;P&gt;Hi Bio_TICFSL,&lt;/P&gt;&lt;P&gt;My local.conf file looks as follow:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;MACHINE ??= 'imx8mpevk'&lt;BR /&gt;DISTRO ?= 'fsl-imx-xwayland'&lt;BR /&gt;PACKAGE_CLASSES ?= 'package_rpm'&lt;BR /&gt;EXTRA_IMAGE_FEATURES ?= "dev-pkgs debug-tweaks tools-debug tools-sdk ssh-server-openssh"&lt;BR /&gt;IMAGE_INSTALL_append = "opencv git wget cmake"&lt;/P&gt;&lt;P&gt;TOOLCHAIN_TARGET_TASK += "tensorflow-lite-dev tensorflow-lite-staticdev"&lt;/P&gt;&lt;P&gt;USER_CLASSES ?= "buildstats image-mklibs image-prelink"&lt;BR /&gt;PATCHRESOLVE = "noop"&lt;BR /&gt;BB_DISKMON_DIRS ??= "\&lt;BR /&gt;STOPTASKS,${TMPDIR},1G,100K \&lt;BR /&gt;STOPTASKS,${DL_DIR},1G,100K \&lt;BR /&gt;STOPTASKS,${SSTATE_DIR},1G,100K \&lt;BR /&gt;STOPTASKS,/tmp,100M,100K \&lt;BR /&gt;ABORT,${TMPDIR},100M,1K \&lt;BR /&gt;ABORT,${DL_DIR},100M,1K \&lt;BR /&gt;ABORT,${SSTATE_DIR},100M,1K \&lt;BR /&gt;ABORT,/tmp,10M,1K"&lt;BR /&gt;PACKAGECONFIG_append_pn-qemu-system-native = " sdl"&lt;BR /&gt;CONF_VERSION = "1"&lt;/P&gt;&lt;P&gt;DL_DIR ?= "${BSPDIR}/downloads/"&lt;BR /&gt;ACCEPT_FSL_EULA = "1"&lt;/P&gt;&lt;P&gt;# Switch to Debian packaging and include package-management in the image&lt;BR /&gt;PACKAGE_CLASSES = "package_deb"&lt;BR /&gt;EXTRA_IMAGE_FEATURES += "package-management"&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;The line TOOLCHAIN_TARGET_TASK_append += " tensorflow-lite-staticdev tensorflow-lite-dev" only adds header files. The static library is&amp;nbsp; no where to be found or perhaps not named as expected.&lt;/P&gt;</description>
      <pubDate>Mon, 30 Nov 2020 15:57:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/eIQ-Tensorflow-lite-c-on-NPU/m-p/1191026#M165723</guid>
      <dc:creator>rbanks</dc:creator>
      <dc:date>2020-11-30T15:57:34Z</dc:date>
    </item>
    <item>
      <title>Re: eIQ Tensorflow-lite c++ on NPU</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/eIQ-Tensorflow-lite-c-on-NPU/m-p/1191702#M165788</link>
      <description>&lt;DIV id="bodyDisplay_0" class="lia-message-body lia-component-message-view-widget-body lia-component-body-signature-highlight-escalation lia-component-message-view-widget-body-signature-highlight-escalation"&gt;
&lt;DIV class="lia-message-body-content"&gt;
&lt;P&gt;I understand you have a package that you are building against the tensorflow-lite, right?&lt;/P&gt;
&lt;P&gt;Are you using DEPENDS += "tensorflow-lite" inside the recipe of your package?&lt;/P&gt;
&lt;P&gt;Regards&lt;/P&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 01 Dec 2020 15:04:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/eIQ-Tensorflow-lite-c-on-NPU/m-p/1191702#M165788</guid>
      <dc:creator>Bio_TICFSL</dc:creator>
      <dc:date>2020-12-01T15:04:43Z</dc:date>
    </item>
    <item>
      <title>Re: eIQ Tensorflow-lite c++ on NPU</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/eIQ-Tensorflow-lite-c-on-NPU/m-p/1191823#M165798</link>
      <description>&lt;P&gt;I have my own c++ code that utilizes the TensorFlow-Lite static library. I need to be able to run make on my code which requires the tensorflow-lite static library. I'm rather new to Yocto. Where would I add DEPENDS += "tensorflow-lite"?&lt;/P&gt;</description>
      <pubDate>Tue, 01 Dec 2020 22:08:21 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/eIQ-Tensorflow-lite-c-on-NPU/m-p/1191823#M165798</guid>
      <dc:creator>rbanks</dc:creator>
      <dc:date>2020-12-01T22:08:21Z</dc:date>
    </item>
    <item>
      <title>Re: eIQ Tensorflow-lite c++ on NPU</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/eIQ-Tensorflow-lite-c-on-NPU/m-p/1192385#M165871</link>
      <description>&lt;P&gt;It seems that the TensorFlow libraries are in the Yocto project but it is not integrated into the rootfs.&lt;/P&gt;
&lt;P&gt;Could you please check in your build project at this path?&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;bld-xwayland/tmp/work/aarch64-poky-linux/tensorflow-lite/2.2.0-r0/git/tensorflow/lite/tools/make/gen/linux_aarch64/lib/libtensorflow-lite.a&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;Please, let me know!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 02 Dec 2020 13:59:17 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/eIQ-Tensorflow-lite-c-on-NPU/m-p/1192385#M165871</guid>
      <dc:creator>Bio_TICFSL</dc:creator>
      <dc:date>2020-12-02T13:59:17Z</dc:date>
    </item>
    <item>
      <title>Re: eIQ Tensorflow-lite c++ on NPU</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/eIQ-Tensorflow-lite-c-on-NPU/m-p/1192448#M165877</link>
      <description>&lt;P&gt;libtensorflow-lite.a does exist in the build directory at that location.&lt;/P&gt;</description>
      <pubDate>Wed, 02 Dec 2020 15:54:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/eIQ-Tensorflow-lite-c-on-NPU/m-p/1192448#M165877</guid>
      <dc:creator>rbanks</dc:creator>
      <dc:date>2020-12-02T15:54:27Z</dc:date>
    </item>
    <item>
      <title>Re: eIQ Tensorflow-lite c++ on NPU</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/eIQ-Tensorflow-lite-c-on-NPU/m-p/1192458#M165878</link>
      <description>&lt;P&gt;libtensorflow-lite.a does exist in the build directory at that location.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 02 Dec 2020 16:09:21 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/eIQ-Tensorflow-lite-c-on-NPU/m-p/1192458#M165878</guid>
      <dc:creator>Bio_TICFSL</dc:creator>
      <dc:date>2020-12-02T16:09:21Z</dc:date>
    </item>
    <item>
      <title>Re: eIQ Tensorflow-lite c++ on NPU</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/eIQ-Tensorflow-lite-c-on-NPU/m-p/1192645#M165881</link>
      <description>&lt;P&gt;So what does that mean? After I run bitbake on the build directory the resulting image is missing libtensorflow-lite.a. Are you implying that I can copy that static library to the image?&lt;BR /&gt;&lt;BR /&gt;Is that static library compiled to use the NPU?&lt;/P&gt;</description>
      <pubDate>Wed, 02 Dec 2020 20:51:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/eIQ-Tensorflow-lite-c-on-NPU/m-p/1192645#M165881</guid>
      <dc:creator>rbanks</dc:creator>
      <dc:date>2020-12-02T20:51:53Z</dc:date>
    </item>
    <item>
      <title>Re: eIQ Tensorflow-lite c++ on NPU</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/eIQ-Tensorflow-lite-c-on-NPU/m-p/1193325#M165938</link>
      <description>&lt;DIV id="bodyDisplay_6" class="lia-message-body lia-component-message-view-widget-body lia-component-body-signature-highlight-escalation lia-component-message-view-widget-body-signature-highlight-escalation"&gt;
&lt;DIV class="lia-message-body-content"&gt;
&lt;P&gt;That basically means that *.a files are not intended to be installed on a image rootfs, as they are development files only.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The *.a files should be part of the -dev packages, or installed on a SDK image (toolchain)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;That's why it's important to understand how you are integrating the package recipe, or if they are working on a native build system, or developing the package only using the SDK (toolchain)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Could you, please confirm which tensorflow-lite recipe are you using on your tests?&lt;/P&gt;
&lt;P&gt;Would be this one?&lt;/P&gt;
&lt;P&gt;&lt;A href="https://source.codeaurora.org/external/imx/meta-imx/tree/meta-ml/recipes-libraries/tensorflow-lite/tensorflow-lite_2.2.0.bb?h=zeus-5.4.47-2.2.0" target="_blank" rel="nofollow noopener noreferrer"&gt;https://source.codeaurora.org/external/imx/meta-imx/tree/meta-ml/recipes-libraries/tensorflow-lite/t...&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I want to test locally to make sure the recipe does not have a bug on that installation. Could you, please, confirm that?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards&lt;/P&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 03 Dec 2020 15:13:19 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/eIQ-Tensorflow-lite-c-on-NPU/m-p/1193325#M165938</guid>
      <dc:creator>Bio_TICFSL</dc:creator>
      <dc:date>2020-12-03T15:13:19Z</dc:date>
    </item>
    <item>
      <title>Re: eIQ Tensorflow-lite c++ on NPU</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/eIQ-Tensorflow-lite-c-on-NPU/m-p/1193358#M165941</link>
      <description>&lt;P&gt;I think I understand what you are getting at.&lt;/P&gt;&lt;P&gt;On my native build machine at yocto_build/source/meta-imx/meta-ml/recipes-libraries/tensorflow-lite exists the file tensorflow-lite_2.2.0.bb. I did a file compare to the one you linked and they are identical.&lt;BR /&gt;&lt;BR /&gt;I am also using Ubuntu 18.04 but I would hope that that isn't the problem as I don't want to have to spend the day or so rebuilding my environment in Ubuntu 16.04.&lt;/P&gt;&lt;P&gt;Thanks for your help on this.&lt;/P&gt;</description>
      <pubDate>Thu, 03 Dec 2020 16:10:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/eIQ-Tensorflow-lite-c-on-NPU/m-p/1193358#M165941</guid>
      <dc:creator>rbanks</dc:creator>
      <dc:date>2020-12-03T16:10:28Z</dc:date>
    </item>
    <item>
      <title>Re: eIQ Tensorflow-lite c++ on NPU</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/eIQ-Tensorflow-lite-c-on-NPU/m-p/1196840#M166198</link>
      <description>&lt;P&gt;Were you able to verify that the recipe doesn't have a bug?&lt;/P&gt;</description>
      <pubDate>Wed, 09 Dec 2020 20:15:29 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/eIQ-Tensorflow-lite-c-on-NPU/m-p/1196840#M166198</guid>
      <dc:creator>rbanks</dc:creator>
      <dc:date>2020-12-09T20:15:29Z</dc:date>
    </item>
    <item>
      <title>Re: eIQ Tensorflow-lite c++ on NPU</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/eIQ-Tensorflow-lite-c-on-NPU/m-p/1197451#M166267</link>
      <description>&lt;P&gt;Yes, it don´t have a bug.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 10 Dec 2020 14:17:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/eIQ-Tensorflow-lite-c-on-NPU/m-p/1197451#M166267</guid>
      <dc:creator>Bio_TICFSL</dc:creator>
      <dc:date>2020-12-10T14:17:48Z</dc:date>
    </item>
    <item>
      <title>Re: eIQ Tensorflow-lite c++ on NPU</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/eIQ-Tensorflow-lite-c-on-NPU/m-p/1197481#M166269</link>
      <description>&lt;P&gt;So when you build the recipe and then flash an SD card, the libtensorflow-lite.a file exists in the image?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If that is true, can you provide the step by step solution that you used to get there? Nothing I try has given me the desired results.&lt;/P&gt;</description>
      <pubDate>Thu, 10 Dec 2020 15:25:29 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/eIQ-Tensorflow-lite-c-on-NPU/m-p/1197481#M166269</guid>
      <dc:creator>rbanks</dc:creator>
      <dc:date>2020-12-10T15:25:29Z</dc:date>
    </item>
    <item>
      <title>Re: eIQ Tensorflow-lite c++ on NPU</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/eIQ-Tensorflow-lite-c-on-NPU/m-p/1202586#M166801</link>
      <description>&lt;P&gt;After some builds and some search, I found this:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://stackoverflow.com/questions/55125977/how-to-build-tensorflow-lite-as-a-static-library-and-link-to-it-from-a-separate" target="_blank" rel="nofollow noopener noreferrer"&gt;https://stackoverflow.com/questions/55125977/how-to-build-tensorflow-lite-as-a-static-library-and-li...&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I can also see this:&lt;/P&gt;
&lt;P&gt;yocto/imx-5.4.47-2.2.0/bld-xwayland$ find -name libtensorflow*a&lt;BR /&gt;./tmp/work/aarch64-poky-linux/tensorflow-lite/2.2.0-r0/git/tensorflow/lite/tools/make/gen/linux_aarch64/lib/libtensorflow-lite.a&lt;BR /&gt;./tmp/work/aarch64-poky-linux/tensorflow-lite/2.2.0-r0/sysroot-destdir/usr/lib/libtensorflow-lite.a&lt;BR /&gt;./tmp/work/aarch64-poky-linux/tensorflow-lite/2.2.0-r0/image/usr/lib/libtensorflow-lite.a&lt;BR /&gt;./tmp/work/aarch64-poky-linux/tensorflow-lite/2.2.0-r0/package/usr/lib/libtensorflow-lite.a&lt;BR /&gt;./tmp/work/aarch64-poky-linux/tensorflow-lite/2.2.0-r0/packages-split/tensorflow-lite-staticdev/usr/lib/libtensorflow-lite.a&lt;BR /&gt;./tmp/sysroots-components/aarch64/tensorflow-lite/usr/lib/libtensorflow-lite.a&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;so, the libtensorflow-lite.a is being installed when you install the tensorflow-lite-staticdev lib. However from the original message "I have my own TensorFlow-Lite model"&lt;/P&gt;
&lt;P&gt;It might be that some adjustments should be done in the CMake environment so that all the static libs needed are being built/created.&lt;/P&gt;
&lt;P&gt;Could you, please, share exactly which is the error log?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 21 Dec 2020 17:00:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/eIQ-Tensorflow-lite-c-on-NPU/m-p/1202586#M166801</guid>
      <dc:creator>Bio_TICFSL</dc:creator>
      <dc:date>2020-12-21T17:00:38Z</dc:date>
    </item>
    <item>
      <title>Re: eIQ Tensorflow-lite c++ on NPU</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/eIQ-Tensorflow-lite-c-on-NPU/m-p/1242651#M170578</link>
      <description>&lt;P&gt;Sorry it took so long to get back to this. There seems to be some discrepancy between what you mean and what I mean. I was trying to get the static library on the end device. You are talking about building my app on a host computer. Either way is fine as long as the static library is compiled to take advantage of the end device hardware.&lt;/P&gt;</description>
      <pubDate>Tue, 09 Mar 2021 16:53:22 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/eIQ-Tensorflow-lite-c-on-NPU/m-p/1242651#M170578</guid>
      <dc:creator>rbanks</dc:creator>
      <dc:date>2021-03-09T16:53:22Z</dc:date>
    </item>
  </channel>
</rss>

