<?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: Glow vs TFLM performance benchmarks on i.MX RT1060? in eIQ Machine Learning Software</title>
    <link>https://community.nxp.com/t5/eIQ-Machine-Learning-Software/Glow-vs-TFLM-performance-benchmarks-on-i-MX-RT1060/m-p/1434131#M606</link>
    <description>&lt;P&gt;&lt;SPAN&gt;Thanks David for the response. My main issue is, I would like to use Research models (not yet standard) created by PyTorch but could not find PyTorch version of inference engine similar to what we have TF Lite Micro for Tensorflow to run on Cortex-M. The closest I find is Glow which seems to have PyTorch support. But I don't know if Glow can take advantage of NPUs like ARM Ethos which NXP is also planning to have it on new versions of MCUs.&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 25 Mar 2022 12:00:34 GMT</pubDate>
    <dc:creator>ramkumarkoppu_p</dc:creator>
    <dc:date>2022-03-25T12:00:34Z</dc:date>
    <item>
      <title>Glow vs TFLM performance benchmarks on i.MX RT1060?</title>
      <link>https://community.nxp.com/t5/eIQ-Machine-Learning-Software/Glow-vs-TFLM-performance-benchmarks-on-i-MX-RT1060/m-p/1432046#M603</link>
      <description>&lt;P&gt;I was reading NXP's blog on Glow compiler for PyTorch at&amp;nbsp;&lt;A href="https://medium.com/pytorch/glow-compiler-optimizes-neural-networks-for-low-power-nxp-mcus-e095abe14942" target="_blank"&gt;https://medium.com/pytorch/glow-compiler-optimizes-neural-networks-for-low-power-nxp-mcus-e095abe14942&lt;/A&gt;&lt;/P&gt;&lt;P&gt;and this blog says i.MX RT1060 used to run Glow and Tensorflow lite for Micro (TFLM) frameworks. Are there any recorded performance benchmarks (inference time, memory consumption, supported operations, etc) to compare Glow and TFLM on the same device? Can you please share it if you have it?&lt;/P&gt;</description>
      <pubDate>Tue, 22 Mar 2022 14:34:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/eIQ-Machine-Learning-Software/Glow-vs-TFLM-performance-benchmarks-on-i-MX-RT1060/m-p/1432046#M603</guid>
      <dc:creator>ramkumarkoppu_p</dc:creator>
      <dc:date>2022-03-22T14:34:45Z</dc:date>
    </item>
    <item>
      <title>Re: Glow vs TFLM performance benchmarks on i.MX RT1060?</title>
      <link>https://community.nxp.com/t5/eIQ-Machine-Learning-Software/Glow-vs-TFLM-performance-benchmarks-on-i-MX-RT1060/m-p/1433983#M604</link>
      <description>&lt;P&gt;Hello &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/147099"&gt;@ramkumarkoppu_p&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;one such comparison can be found in &lt;A href="https://www.nxp.com/webapp/Download?colCode=AN13562" target="_self"&gt;AN13562&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="david_piskula_0-1648195393541.png" style="width: 999px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/174846i9E4BCA7E81F7A430/image-size/large?v=v2&amp;amp;px=999" role="button" title="david_piskula_0-1648195393541.png" alt="david_piskula_0-1648195393541.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;However, the results are very model dependent. In general, it has been my experience that GLOW outperformed TF Lite Micro slightly but there have also been cases where the situation was reversed. It all depends on the specific layers used in the model, what versions are supported etc. Ultimately, it just comes down to experimentation.&lt;/P&gt;
&lt;P&gt;Since it's possible to convert TensorFlow models to ONNX and then compile them with GLOW, you can always train your model in TensorFlow and then compare the performance by converting it both to TF Lite and with GLOW and decide for yourself, which suits your project better.&lt;/P&gt;
&lt;P&gt;As for supported operations, that depends on the version of TensorFlow/GLOW currently supported in the SDK. Please have a look at the user guides in the doc folder in the SDK.&lt;/P&gt;
&lt;P&gt;I also found this article: &lt;A href="https://towardsdatascience.com/tflite-micro-vs-glow-aot-6524be02ba2a" target="_blank"&gt;https://towardsdatascience.com/tflite-micro-vs-glow-aot-6524be02ba2a&lt;/A&gt; which explains the difference between GLOW and TF Lite Micro pretty nicely. It's almost a year old so the data might be outdated at this point but the general idea presented in the article still applies.&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;David&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;DIV class="notranslate" style="all: initial;"&gt;&amp;nbsp;&lt;/DIV&gt;</description>
      <pubDate>Fri, 25 Mar 2022 08:21:15 GMT</pubDate>
      <guid>https://community.nxp.com/t5/eIQ-Machine-Learning-Software/Glow-vs-TFLM-performance-benchmarks-on-i-MX-RT1060/m-p/1433983#M604</guid>
      <dc:creator>david_piskula</dc:creator>
      <dc:date>2022-03-25T08:21:15Z</dc:date>
    </item>
    <item>
      <title>Re: Glow vs TFLM performance benchmarks on i.MX RT1060?</title>
      <link>https://community.nxp.com/t5/eIQ-Machine-Learning-Software/Glow-vs-TFLM-performance-benchmarks-on-i-MX-RT1060/m-p/1434131#M606</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Thanks David for the response. My main issue is, I would like to use Research models (not yet standard) created by PyTorch but could not find PyTorch version of inference engine similar to what we have TF Lite Micro for Tensorflow to run on Cortex-M. The closest I find is Glow which seems to have PyTorch support. But I don't know if Glow can take advantage of NPUs like ARM Ethos which NXP is also planning to have it on new versions of MCUs.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 25 Mar 2022 12:00:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/eIQ-Machine-Learning-Software/Glow-vs-TFLM-performance-benchmarks-on-i-MX-RT1060/m-p/1434131#M606</guid>
      <dc:creator>ramkumarkoppu_p</dc:creator>
      <dc:date>2022-03-25T12:00:34Z</dc:date>
    </item>
    <item>
      <title>Re: Glow vs TFLM performance benchmarks on i.MX RT1060?</title>
      <link>https://community.nxp.com/t5/eIQ-Machine-Learning-Software/Glow-vs-TFLM-performance-benchmarks-on-i-MX-RT1060/m-p/1434184#M607</link>
      <description>&lt;P&gt;I see, in that case I would definitely recommend you give GLOW a try. As for the accelerator support, you could have a look at the RT685, which offers neural network acceleration using the HiFi4 DSP and is fully supported by GLOW.&lt;/P&gt;
&lt;P&gt;We do plan on supporting NPUs in future devices with our eIQ enablement and will be sharing more details on that in the future.&lt;/P&gt;</description>
      <pubDate>Fri, 25 Mar 2022 14:13:58 GMT</pubDate>
      <guid>https://community.nxp.com/t5/eIQ-Machine-Learning-Software/Glow-vs-TFLM-performance-benchmarks-on-i-MX-RT1060/m-p/1434184#M607</guid>
      <dc:creator>david_piskula</dc:creator>
      <dc:date>2022-03-25T14:13:58Z</dc:date>
    </item>
    <item>
      <title>Re: Glow vs TFLM performance benchmarks on i.MX RT1060?</title>
      <link>https://community.nxp.com/t5/eIQ-Machine-Learning-Software/Glow-vs-TFLM-performance-benchmarks-on-i-MX-RT1060/m-p/1434990#M608</link>
      <description>&lt;P&gt;Hi David,&lt;/P&gt;&lt;P&gt;I have a TF Lite model which is targeted to run on Google Coral Dev Board. If I run the same TF Lite model on ARM Ethos-U65 microNPU which will be available on i.MX 93 application processor,&amp;nbsp; will there be a performance degradation? Has NXP done any tests with&amp;nbsp;ARM Ethos-U65 microNPU in terms of Inference time, operators availability, power usage?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 28 Mar 2022 19:19:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/eIQ-Machine-Learning-Software/Glow-vs-TFLM-performance-benchmarks-on-i-MX-RT1060/m-p/1434990#M608</guid>
      <dc:creator>ramkumarkoppu_p</dc:creator>
      <dc:date>2022-03-28T19:19:09Z</dc:date>
    </item>
    <item>
      <title>Re: Glow vs TFLM performance benchmarks on i.MX RT1060?</title>
      <link>https://community.nxp.com/t5/eIQ-Machine-Learning-Software/Glow-vs-TFLM-performance-benchmarks-on-i-MX-RT1060/m-p/1435222#M609</link>
      <description>&lt;P&gt;Hello &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/147099"&gt;@ramkumarkoppu_p&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;I am not able to comment on future releases, sorry. The i.MX 93 is still in preproduction and all its specifications are still subject to change without notice, as stated on its NXP page.&lt;/P&gt;&lt;P&gt;Also, since this is a thread about GLOW vs TFLM on i.MX RT1060, could you please open a new thread in case you have questions that don't relate to the topic here? It helps keep the community easier to navigate. (And since I'm focused on RT devices, I am not able to provide proper i.MX application processors support anyway.)&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;David&lt;/P&gt;</description>
      <pubDate>Tue, 29 Mar 2022 05:50:24 GMT</pubDate>
      <guid>https://community.nxp.com/t5/eIQ-Machine-Learning-Software/Glow-vs-TFLM-performance-benchmarks-on-i-MX-RT1060/m-p/1435222#M609</guid>
      <dc:creator>david_piskula</dc:creator>
      <dc:date>2022-03-29T05:50:24Z</dc:date>
    </item>
  </channel>
</rss>

