<?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: Out of TCM memory in imx95 Neutron delegate in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/Out-of-TCM-memory-in-imx95-Neutron-delegate/m-p/2045562#M234096</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;That;s an issue with larger models at the moment of load the i.MX95 get the out of memory issue, but that is not a simple error its a warning that you may have to reduce the model. The i.mx95 development still on beta phase and will be investigating issue like this. Thanks for the catch.&lt;/P&gt;
&lt;P&gt;Regards&lt;/P&gt;</description>
    <pubDate>Mon, 17 Feb 2025 14:30:02 GMT</pubDate>
    <dc:creator>Bio_TICFSL</dc:creator>
    <dc:date>2025-02-17T14:30:02Z</dc:date>
    <item>
      <title>Out of TCM memory in imx95 Neutron delegate</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Out-of-TCM-memory-in-imx95-Neutron-delegate/m-p/2043620#M233986</link>
      <description>&lt;P&gt;I'm working on imx95 version 6.6.23, trying to run a large model using neutron delegate.&lt;/P&gt;&lt;P&gt;I'm getting the following errors (several times) when loading the model:&lt;/P&gt;&lt;P&gt;WARNING: De-extracting subgraph 'subgraph_002' because of a failure!&lt;BR /&gt;WARNING: The failure occurred with message 'Out of TCM memory!' at line 293 in file '/home/osc/ci/npi-imx95/neutron-software/neutron-converter/src/NeutronTCMAllocator.cpp' in domain 'Allocator'.&lt;BR /&gt;&lt;BR /&gt;The library is not provided in source code so there is no way to track the error.&lt;/P&gt;&lt;P&gt;How do I know what is the problem? What is the limit of what item in the model?&lt;BR /&gt;&lt;BR /&gt;Thanks for the help&lt;/P&gt;</description>
      <pubDate>Thu, 13 Feb 2025 17:21:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Out-of-TCM-memory-in-imx95-Neutron-delegate/m-p/2043620#M233986</guid>
      <dc:creator>David41</dc:creator>
      <dc:date>2025-02-13T17:21:06Z</dc:date>
    </item>
    <item>
      <title>Re: Out of TCM memory in imx95 Neutron delegate</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Out-of-TCM-memory-in-imx95-Neutron-delegate/m-p/2045562#M234096</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;That;s an issue with larger models at the moment of load the i.MX95 get the out of memory issue, but that is not a simple error its a warning that you may have to reduce the model. The i.mx95 development still on beta phase and will be investigating issue like this. Thanks for the catch.&lt;/P&gt;
&lt;P&gt;Regards&lt;/P&gt;</description>
      <pubDate>Mon, 17 Feb 2025 14:30:02 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Out-of-TCM-memory-in-imx95-Neutron-delegate/m-p/2045562#M234096</guid>
      <dc:creator>Bio_TICFSL</dc:creator>
      <dc:date>2025-02-17T14:30:02Z</dc:date>
    </item>
    <item>
      <title>Re: Out of TCM memory in imx95 Neutron delegate</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Out-of-TCM-memory-in-imx95-Neutron-delegate/m-p/2046066#M234119</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I am evaluating i.MX95 EVK for the ML performance. I already have experience with i.MX8M Plus and have developed a couple of applications already.&lt;/P&gt;&lt;P&gt;As a starting point, I considered running sample application under &lt;A href="https://github.com/nxp-imx/eiq-example" target="_blank" rel="noopener nofollow noreferrer"&gt;eiq-example&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;I followed the steps, however I ran into a problem with '&lt;FONT face="courier new,courier"&gt;Out of TCM memory&lt;/FONT&gt;'.&lt;/P&gt;&lt;P&gt;Here is the log for your reference.&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;root@imx95evk:~/eiq-example/face_recognition# uname -a&lt;BR /&gt;Linux imx95evk 6.6.36-lts-next-gd23d64eea511 #1 SMP PREEMPT Wed Sep 4 08:22:45 UTC 2024 aarch64 GNU/Linux&lt;/P&gt;&lt;P&gt;root@imx95evk:~/eiq-example# ls -la models/&lt;BR /&gt;total 24024&lt;BR /&gt;drwxr-xr-x 2 root root 4096 Feb 14 11:44 .&lt;BR /&gt;drwxr-xr-x 8 root root 4096 Feb 14 11:45 ..&lt;BR /&gt;-rw-r--r-- 1 root root 24538272 Feb 14 11:44 facenet_512_int_quantized.tflite&lt;BR /&gt;-rw-r--r-- 1 root root 49472 Feb 14 11:44 yoloface_int8.tflite&lt;/P&gt;&lt;P&gt;root@imx95evk:~/eiq-example/face_recognition# python3 main.py --input=/dev/video13 --delegate=/usr/lib/libneutron_delegate.so&lt;BR /&gt;INFO: NeutronDelegate delegate: 45 nodes delegated out of 54 nodes with 4 partitions.&lt;/P&gt;&lt;P&gt;INFO: Created TensorFlow Lite XNNPACK delegate for CPU.&lt;BR /&gt;WARNING: De-extracting subgraph 'subgraph_159' because of a failure!&lt;BR /&gt;WARNING: The failure occurred with message 'Out of TCM memory!' at line 412 in file '/opt/bamboo/agent-home/xml-data/build-dir/MLTEC-NEUTNPIIMX950-BDEG/neutron-software/neutron-converter/src/NeutronTCMAllocator.cpp' in domain 'Allocator'.&lt;/P&gt;&lt;P&gt;Traceback (most recent call last):&lt;BR /&gt;File "/root/eiq-example/face_recognition/main.py", line 30, in &amp;lt;module&amp;gt;&lt;BR /&gt;recognizer = Facenet("../models/facenet_512_int_quantized.tflite", args.delegate)&lt;BR /&gt;^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^&lt;BR /&gt;File "/root/eiq-example/face_recognition/face_recognition.py", line 20, in __init__&lt;BR /&gt;self.interpreter.allocate_tensors()&lt;BR /&gt;File "/usr/lib/python3.12/site-packages/tflite_runtime/interpreter.py", line 531, in allocate_tensors&lt;BR /&gt;return self._interpreter.AllocateTensors()&lt;BR /&gt;^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^&lt;BR /&gt;RuntimeError: Failed to build Neutron graph.&lt;BR /&gt;Delegate kernel was not initializedNode number 198 (NeutronDelegate) failed to prepare.Failed to apply the default TensorFlow Lite delegate indexed at 0.&lt;BR /&gt;Error: invalid model handle!&lt;BR /&gt;Error: invalid model handle!&lt;BR /&gt;Error: invalid model handle!&lt;BR /&gt;Error: invalid model handle!&lt;BR /&gt;Error: invalid model handle!&lt;BR /&gt;Error: invalid model handle!&lt;BR /&gt;Error: invalid model handle!&lt;BR /&gt;Error: invalid model handle!&lt;BR /&gt;Error: invalid model handle!&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Let me know how this can be resolved.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Aekam Parmar&lt;/P&gt;</description>
      <pubDate>Tue, 18 Feb 2025 07:31:07 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Out-of-TCM-memory-in-imx95-Neutron-delegate/m-p/2046066#M234119</guid>
      <dc:creator>aekam_acldigital</dc:creator>
      <dc:date>2025-02-18T07:31:07Z</dc:date>
    </item>
  </channel>
</rss>

