<?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 RT Crossover MCUsのトピックRe: RT1062 run tensorflowlite cifar10 sample code error message.</title>
    <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/RT1062-run-tensorflowlite-cifar10-sample-code-error-message/m-p/1331388#M16117</link>
    <description>&lt;P&gt;Hi,&amp;nbsp; &amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;In order to optimize the code size,&amp;nbsp; the newest sdk(sdk 2.10.0) usually registered the nodes needed, so if you change a model ,you need to re-register the nodes inside your model:&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp;So, please help check, if your code is using the line:71 to include all the op-codes into the project not the line 73 of the model.cpp:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="crist_xu_0-1630292945679.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/154401iBA3C9277A7B07540/image-size/medium?v=v2&amp;amp;px=400" role="button" title="crist_xu_0-1630292945679.png" alt="crist_xu_0-1630292945679.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;And also please check if there is a function named AddQuantize() inside all_op_resolvers.cpp:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="crist_xu_1-1630293064564.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/154402i90DD1D6A39920D80/image-size/medium?v=v2&amp;amp;px=400" role="button" title="crist_xu_1-1630293064564.png" alt="crist_xu_1-1630293064564.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; Crist&lt;/P&gt;</description>
    <pubDate>Mon, 30 Aug 2021 03:11:35 GMT</pubDate>
    <dc:creator>crist_xu</dc:creator>
    <dc:date>2021-08-30T03:11:35Z</dc:date>
    <item>
      <title>RT1062 run tensorflowlite cifar10 sample code error message.</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/RT1062-run-tensorflowlite-cifar10-sample-code-error-message/m-p/1328443#M16019</link>
      <description>&lt;P&gt;My platform: EVK RT1062.&lt;/P&gt;&lt;P&gt;Sample code : Tenorflow_lite_micro_cifar10&lt;/P&gt;&lt;P&gt;Duplicate: I try to modify the inference file(model_data.h) with my model&lt;/P&gt;&lt;P&gt;( .h5 file ==&amp;gt;EIQ tool==&amp;gt; .tflite ==&amp;gt; xxd ==&amp;gt;.model_data.h)&lt;/P&gt;&lt;P&gt;Then I got the error message. (quantize format with int8 and int32)&lt;/P&gt;&lt;P&gt;Would you have any idea about this bug?&lt;/P&gt;&lt;P&gt;===================================================&lt;BR /&gt;// int8&lt;/P&gt;&lt;P&gt;CIFAR-10 example using a TensorFlow Lite Micro model.&lt;BR /&gt;Detection threshold: 60%&lt;BR /&gt;Model: cifarnet_quant_int8&lt;BR /&gt;Didn't find op for builtin opcode 'QUANTIZE' version '1'&lt;/P&gt;&lt;P&gt;Failed to get registration from op code ADD&lt;/P&gt;&lt;P&gt;Failed starting model allocation.&lt;/P&gt;&lt;P&gt;AllocateTensors() failed&lt;BR /&gt;Failed initializing model&lt;/P&gt;&lt;P&gt;===================================================&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;// int32&lt;/P&gt;&lt;P&gt;Detection threshold: 60%&lt;BR /&gt;Model: cifarnet_quant_int8&lt;BR /&gt;Didn't find op for builtin opcode 'RESHAPE' version '1'&lt;/P&gt;&lt;P&gt;Failed to get registration from op code ADD&lt;/P&gt;&lt;P&gt;Failed starting model allocation.&lt;/P&gt;&lt;P&gt;AllocateTensors() failed&lt;BR /&gt;Failed initializing model&lt;/P&gt;</description>
      <pubDate>Tue, 24 Aug 2021 09:03:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/RT1062-run-tensorflowlite-cifar10-sample-code-error-message/m-p/1328443#M16019</guid>
      <dc:creator>marcowang</dc:creator>
      <dc:date>2021-08-24T09:03:34Z</dc:date>
    </item>
    <item>
      <title>Re: RT1062 run tensorflowlite cifar10 sample code error message.</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/RT1062-run-tensorflowlite-cifar10-sample-code-error-message/m-p/1329120#M16039</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/95637"&gt;@marcowang&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;Thanks for your interest in the NXP MIMXRT product, I would like to provide service for you.&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;You are using this SDK code:&lt;/P&gt;&lt;P&gt;SDK_2_10_0_EVK-MIMXRT1060\boards\evkmimxrt1060\eiq_examples\tensorflow_lite_micro_cifar10&lt;/P&gt;&lt;P&gt;&amp;nbsp;And you replace your own model.&lt;/P&gt;&lt;P&gt;&amp;nbsp; Could you please give me more details about your own model information, then I can try to reproduce your issues at first.&lt;/P&gt;&lt;P&gt;&amp;nbsp;You mentioned:&amp;nbsp;&lt;SPAN&gt;( .h5 file ==&amp;gt;EIQ tool==&amp;gt; .tflite ==&amp;gt; xxd ==&amp;gt;.model_data.h)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Please help to provide the related files for the issue reproduction.&lt;/P&gt;&lt;P&gt;Do you refer to any document about your own model generation? I just want to follow your steps and do it again, try to check whether I can also reproduce your issues.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;kerry&lt;/P&gt;</description>
      <pubDate>Wed, 25 Aug 2021 05:43:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/RT1062-run-tensorflowlite-cifar10-sample-code-error-message/m-p/1329120#M16039</guid>
      <dc:creator>kerryzhou</dc:creator>
      <dc:date>2021-08-25T05:43:23Z</dc:date>
    </item>
    <item>
      <title>Re: RT1062 run tensorflowlite cifar10 sample code error message.</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/RT1062-run-tensorflowlite-cifar10-sample-code-error-message/m-p/1331388#M16117</link>
      <description>&lt;P&gt;Hi,&amp;nbsp; &amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;In order to optimize the code size,&amp;nbsp; the newest sdk(sdk 2.10.0) usually registered the nodes needed, so if you change a model ,you need to re-register the nodes inside your model:&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp;So, please help check, if your code is using the line:71 to include all the op-codes into the project not the line 73 of the model.cpp:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="crist_xu_0-1630292945679.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/154401iBA3C9277A7B07540/image-size/medium?v=v2&amp;amp;px=400" role="button" title="crist_xu_0-1630292945679.png" alt="crist_xu_0-1630292945679.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;And also please check if there is a function named AddQuantize() inside all_op_resolvers.cpp:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="crist_xu_1-1630293064564.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/154402i90DD1D6A39920D80/image-size/medium?v=v2&amp;amp;px=400" role="button" title="crist_xu_1-1630293064564.png" alt="crist_xu_1-1630293064564.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; Crist&lt;/P&gt;</description>
      <pubDate>Mon, 30 Aug 2021 03:11:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/RT1062-run-tensorflowlite-cifar10-sample-code-error-message/m-p/1331388#M16117</guid>
      <dc:creator>crist_xu</dc:creator>
      <dc:date>2021-08-30T03:11:35Z</dc:date>
    </item>
    <item>
      <title>Re: RT1062 run tensorflowlite cifar10 sample code error message.</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/RT1062-run-tensorflowlite-cifar10-sample-code-error-message/m-p/1342158#M16383</link>
      <description>&lt;P&gt;Hello&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/92190"&gt;@crist_xu&lt;/a&gt;&lt;/P&gt;&lt;P&gt;I have very similar challenge (refers to example from SDK2.10.1 named &lt;EM&gt;evkmimxrt1170_tensorflow_lite_micro_label_image_cm7&lt;/EM&gt;), and made all changes you suggested, such us:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="c"&gt;tflite::AllOpsResolver micro_op_resolver;
//    tflite::MicroOpResolver &amp;amp;micro_op_resolver = MODEL_GetOpsResolver(s_errorReporter);&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, there is issue left which has been also mentioned by &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/95637"&gt;@marcowang&lt;/a&gt; in his first post, it means:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="c"&gt;Failed to get registration from op code ADD&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any thoughts? Thanks in advance!&lt;/P&gt;&lt;P&gt;Steps to reproduce:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;import &lt;EM&gt;evkmimxrt1170_tensorflow_lite_micro_label_image_cm7&lt;/EM&gt; (SDK 2.10.1)&lt;/LI&gt;&lt;LI&gt;download model &lt;A href="https://tfhub.dev/tensorflow/lite-model/ssd_mobilenet_v1/1/metadata/1?lite-format=tflite" target="_blank"&gt;https://tfhub.dev/tensorflow/lite-model/ssd_mobilenet_v1/1/metadata/1?lite-format=tflite&lt;/A&gt;&lt;/LI&gt;&lt;LI&gt;convert it to *.h with &lt;STRONG&gt;xxd -i ssd_mobilenet_v1_1_metadata_1.tflite &amp;gt; ssd_mobilenet_v1_1_metadata_1.h&lt;/STRONG&gt;&lt;/LI&gt;&lt;LI&gt;place &lt;EM&gt;ssd_mobilenet_v1_1_metadata_1.h&lt;/EM&gt; in &lt;STRONG&gt;/source/model/&lt;/STRONG&gt;&lt;/LI&gt;&lt;LI&gt;change &lt;EM&gt;ssd_mobilenet_v1_1_metadata_1.h&lt;/EM&gt; to look in the same way as&amp;nbsp;&lt;STRONG&gt;/source/model/model_data.h&lt;/STRONG&gt;&lt;/LI&gt;&lt;LI&gt;&lt;EM&gt;#include "ssd_mobilenet_v1_1_metadata_1.h"&lt;/EM&gt; in &lt;STRONG&gt;/source/model/model.cpp&lt;/STRONG&gt;&lt;/LI&gt;&lt;LI&gt;&lt;EM&gt;s_model = tflite::GetModel(ssd_mobilenet_v1_1_metadata_1_tflite);&lt;/EM&gt; in&amp;nbsp;&lt;STRONG&gt;/source/model/model.cpp&lt;/STRONG&gt;&lt;/LI&gt;&lt;/UL&gt;</description>
      <pubDate>Fri, 17 Sep 2021 11:19:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/RT1062-run-tensorflowlite-cifar10-sample-code-error-message/m-p/1342158#M16383</guid>
      <dc:creator>MarcinChelminsk</dc:creator>
      <dc:date>2021-09-17T11:19:45Z</dc:date>
    </item>
    <item>
      <title>Re: RT1062 run tensorflowlite cifar10 sample code error message.</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/RT1062-run-tensorflowlite-cifar10-sample-code-error-message/m-p/1354141#M16672</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/172242"&gt;@MarcinChelminsk&lt;/a&gt;&amp;nbsp;, i couldn't send private message. It says i reached maximum number of private messages.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Try placing&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;s_microOpResolver.AddAdd();&lt;/PRE&gt;&lt;P&gt;at the first, that's the only difference I could see comparing to my code. Also try cleaning the project and build again.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 12 Oct 2021 09:40:57 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/RT1062-run-tensorflowlite-cifar10-sample-code-error-message/m-p/1354141#M16672</guid>
      <dc:creator>Ramson</dc:creator>
      <dc:date>2021-10-12T09:40:57Z</dc:date>
    </item>
    <item>
      <title>Re: RT1062 run tensorflowlite cifar10 sample code error message.</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/RT1062-run-tensorflowlite-cifar10-sample-code-error-message/m-p/1354208#M16676</link>
      <description>&lt;P&gt;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/189393"&gt;@Ramson&lt;/a&gt;, thank you very much for your comment, however unfortunately it does not work on my end, I ma still looking for solution. I have also tried with changing resolver to &lt;STRONG&gt;AllOpsResolver&lt;/STRONG&gt; (as mentioned here in troubleshooting: &lt;A href="https://community.nxp.com/t5/eIQ-Machine-Learning-Software/eIQ-FAQ/ta-p/1099741" target="_blank"&gt;https://community.nxp.com/t5/eIQ-Machine-Learning-Software/eIQ-FAQ/ta-p/1099741&lt;/A&gt; ) however no success so far&lt;/P&gt;</description>
      <pubDate>Tue, 12 Oct 2021 11:06:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/RT1062-run-tensorflowlite-cifar10-sample-code-error-message/m-p/1354208#M16676</guid>
      <dc:creator>MarcinChelminsk</dc:creator>
      <dc:date>2021-10-12T11:06:28Z</dc:date>
    </item>
  </channel>
</rss>

