<?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>i.MX ProcessorsのトピックRe: tflite profiling does not show details when using vx delegate</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/tflite-profiling-does-not-show-details-when-using-vx-delegate/m-p/1657395#M206539</link>
    <description>&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;P&gt;Thanks &lt;A href="https://community.nxp.com/t5/user/viewprofilepage/user-id/207096" target="_blank" rel="noopener"&gt;@Brian_Ibarra&lt;/A&gt;.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I got familiar with your &lt;STRONG&gt;modelrunner, &lt;/STRONG&gt;in the last &lt;STRONG&gt;Linux 6.1.1_1.0.0​&lt;/STRONG&gt; version. Indeed, I can see the &lt;STRONG&gt;--profiling&lt;/STRONG&gt; option in this tools, however I am encountering some troubles. I am running the tool directly on the board an &lt;STRONG&gt;IMX8MP&lt;/STRONG&gt;, with the tflite engine:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;First, running: &lt;STRONG&gt;modelrunner -m my_model.tflite -e tflite -c 0&lt;BR /&gt;&lt;/STRONG&gt;I get the error: &lt;EM&gt;no servers enabled, refer to --http argument. &lt;/EM&gt;But this is solved, just by giving the param &lt;STRONG&gt;-b/--benchmark &lt;/STRONG&gt;like so:&lt;BR /&gt;&lt;STRONG&gt;modelrunner -m my_model.tflite -e tflite -c 0 -b 10&lt;/STRONG&gt;. I assume it's a bug, as I don't think this parameter has anything to do with the server.&lt;/LI&gt;&lt;LI&gt;Adding the &lt;STRONG&gt;--profiling&lt;/STRONG&gt; param, it just shows nothing anymore, no error, but no time information output:&lt;BR /&gt;&lt;STRONG&gt;modelrunner -m my_model.tflite -e tflite -c 0 -b 2 --profiling&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Using default Plugin: libprofiling-server.so&lt;BR /&gt;&lt;BR /&gt;&lt;/STRONG&gt;I tried to set the&lt;STRONG&gt; --hostname &lt;/STRONG&gt;param to imx8mpevk but it gives the following error:&lt;BR /&gt;&lt;STRONG&gt;modelrunner -m my_model.tflite -e tflite -c 0 -b 2 --profiling --hostname imx8mpevk&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Using default Plugin: libprofiling-server.so&lt;BR /&gt;munmap_chunk(): invalid pointer&lt;BR /&gt;Aborted&lt;BR /&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/LI&gt;&lt;LI&gt;In my model, I am using &lt;STRONG&gt;custom operators&lt;/STRONG&gt;, so the executable is complaining about them. Unfortunately, I haven't seen any source code to add manually my custom ops, but just the provided binary in &lt;STRONG&gt;&amp;lt;eIQ_Toolkit_install_dir&amp;gt;\deepviewrt\modelrunner-b0dfb0e.zip&lt;/STRONG&gt;. Could you provide it?&lt;BR /&gt;&lt;BR /&gt;Thanks!&lt;/LI&gt;&lt;/OL&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
    <pubDate>Thu, 25 May 2023 07:15:48 GMT</pubDate>
    <dc:creator>Antoine_B</dc:creator>
    <dc:date>2023-05-25T07:15:48Z</dc:date>
    <item>
      <title>tflite profiling does not show details when using vx delegate</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/tflite-profiling-does-not-show-details-when-using-vx-delegate/m-p/1628237#M203764</link>
      <description>&lt;P&gt;I have wrote an issue on the &lt;STRONG&gt;TIM-VX&lt;/STRONG&gt; side, but it may actually concern IMX as well: &lt;A href="https://github.com/VeriSilicon/TIM-VX/issues/571" target="_self"&gt;GitHub issue&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To summarize, I am concerned not having any&lt;STRONG&gt; per-ops details&lt;/STRONG&gt; from the&lt;STRONG&gt; tflite benchmark app&lt;/STRONG&gt;, when using the &lt;STRONG&gt;vx lib delegate&lt;/STRONG&gt;. How could I get those informations to check where is the bottleneck? I precise that I get the details when running on the &lt;STRONG&gt;CPU&lt;/STRONG&gt;, but the inference times from different model sizes on the CPU and NPU are not proportional, and are not following the same behavior in term of time. So no conclusion could be drawn from it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Wed, 05 Apr 2023 12:11:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/tflite-profiling-does-not-show-details-when-using-vx-delegate/m-p/1628237#M203764</guid>
      <dc:creator>Antoine_B</dc:creator>
      <dc:date>2023-04-05T12:11:49Z</dc:date>
    </item>
    <item>
      <title>Re: tflite profiling does not show details when using vx delegate</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/tflite-profiling-does-not-show-details-when-using-vx-delegate/m-p/1629894#M203898</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/215326"&gt;@Antoine_B&lt;/a&gt;,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you for sharing the link to GitHub. I will review the link.&lt;BR /&gt;Based on iMX Machine Learning User's Guide the application can't show the details per ops.&lt;BR /&gt;I can suggest you use our &lt;A href="https://www.nxp.com/design/software/development-software/eiq-ml-development-environment/eiq-toolkit-for-end-to-end-model-development-and-deployment:EIQ-TOOLKIT" target="_self"&gt;eIQ Toolkit&lt;/A&gt; to profile your model, for access to eIQ Documentation click on eIQ Portal &amp;gt; Help &amp;gt; eIQ Documentation then select eIQ_Toolkit_UG.pdf and finally go to 4.1 Model Profiling section.&lt;BR /&gt;&lt;BR /&gt;Please let me know if this works.&lt;BR /&gt;&lt;BR /&gt;Best regards, Brian.&lt;/P&gt;</description>
      <pubDate>Fri, 07 Apr 2023 18:22:29 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/tflite-profiling-does-not-show-details-when-using-vx-delegate/m-p/1629894#M203898</guid>
      <dc:creator>brian14</dc:creator>
      <dc:date>2023-04-07T18:22:29Z</dc:date>
    </item>
    <item>
      <title>Re: tflite profiling does not show details when using vx delegate</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/tflite-profiling-does-not-show-details-when-using-vx-delegate/m-p/1657395#M206539</link>
      <description>&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;P&gt;Thanks &lt;A href="https://community.nxp.com/t5/user/viewprofilepage/user-id/207096" target="_blank" rel="noopener"&gt;@Brian_Ibarra&lt;/A&gt;.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I got familiar with your &lt;STRONG&gt;modelrunner, &lt;/STRONG&gt;in the last &lt;STRONG&gt;Linux 6.1.1_1.0.0​&lt;/STRONG&gt; version. Indeed, I can see the &lt;STRONG&gt;--profiling&lt;/STRONG&gt; option in this tools, however I am encountering some troubles. I am running the tool directly on the board an &lt;STRONG&gt;IMX8MP&lt;/STRONG&gt;, with the tflite engine:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;First, running: &lt;STRONG&gt;modelrunner -m my_model.tflite -e tflite -c 0&lt;BR /&gt;&lt;/STRONG&gt;I get the error: &lt;EM&gt;no servers enabled, refer to --http argument. &lt;/EM&gt;But this is solved, just by giving the param &lt;STRONG&gt;-b/--benchmark &lt;/STRONG&gt;like so:&lt;BR /&gt;&lt;STRONG&gt;modelrunner -m my_model.tflite -e tflite -c 0 -b 10&lt;/STRONG&gt;. I assume it's a bug, as I don't think this parameter has anything to do with the server.&lt;/LI&gt;&lt;LI&gt;Adding the &lt;STRONG&gt;--profiling&lt;/STRONG&gt; param, it just shows nothing anymore, no error, but no time information output:&lt;BR /&gt;&lt;STRONG&gt;modelrunner -m my_model.tflite -e tflite -c 0 -b 2 --profiling&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Using default Plugin: libprofiling-server.so&lt;BR /&gt;&lt;BR /&gt;&lt;/STRONG&gt;I tried to set the&lt;STRONG&gt; --hostname &lt;/STRONG&gt;param to imx8mpevk but it gives the following error:&lt;BR /&gt;&lt;STRONG&gt;modelrunner -m my_model.tflite -e tflite -c 0 -b 2 --profiling --hostname imx8mpevk&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Using default Plugin: libprofiling-server.so&lt;BR /&gt;munmap_chunk(): invalid pointer&lt;BR /&gt;Aborted&lt;BR /&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/LI&gt;&lt;LI&gt;In my model, I am using &lt;STRONG&gt;custom operators&lt;/STRONG&gt;, so the executable is complaining about them. Unfortunately, I haven't seen any source code to add manually my custom ops, but just the provided binary in &lt;STRONG&gt;&amp;lt;eIQ_Toolkit_install_dir&amp;gt;\deepviewrt\modelrunner-b0dfb0e.zip&lt;/STRONG&gt;. Could you provide it?&lt;BR /&gt;&lt;BR /&gt;Thanks!&lt;/LI&gt;&lt;/OL&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 25 May 2023 07:15:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/tflite-profiling-does-not-show-details-when-using-vx-delegate/m-p/1657395#M206539</guid>
      <dc:creator>Antoine_B</dc:creator>
      <dc:date>2023-05-25T07:15:48Z</dc:date>
    </item>
    <item>
      <title>Re: tflite profiling does not show details when using vx delegate</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/tflite-profiling-does-not-show-details-when-using-vx-delegate/m-p/1657691#M206559</link>
      <description>&lt;P&gt;Well, it happened that for point &lt;STRONG&gt;1&lt;/STRONG&gt; and &lt;STRONG&gt;2&lt;/STRONG&gt;, I missread the documentation (check pic attached below), that even the latest versions (I have the &lt;STRONG&gt;6.1.1_1.0.0&lt;/STRONG&gt;) do not have the profiling feature, and that I had to replace the binary with the one provided by the &lt;STRONG&gt;EIQ toolkit&lt;/STRONG&gt;. This is now done, and indeed I can access the profiling graph, even with the &lt;STRONG&gt;VX delegate,&lt;/STRONG&gt; with the following command line on the target board&lt;STRONG&gt;:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;$ modelrunner -d prof -H 10818 -e tflite -c 3&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And then adding the device &lt;STRONG&gt;http//&amp;lt;ip&amp;gt;:10818&lt;/STRONG&gt; on the remote laptop within the &lt;STRONG&gt;Model Tool GUI&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, what about my last point, when the model uses &lt;STRONG&gt;custom tflite operators&lt;/STRONG&gt;? So far I haven't seen any options in the executable itself, and no source code on the internet.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Thu, 25 May 2023 12:58:29 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/tflite-profiling-does-not-show-details-when-using-vx-delegate/m-p/1657691#M206559</guid>
      <dc:creator>Antoine_B</dc:creator>
      <dc:date>2023-05-25T12:58:29Z</dc:date>
    </item>
  </channel>
</rss>

