<?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: Fully_Connected Layer not able to convert on Neutron Graph while deploying the model on IMX95 NP in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/Fully-Connected-Layer-not-able-to-convert-on-Neutron-Graph-while/m-p/2118113#M238317</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;You should move to the latest BSP.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.nxp.com/design/design-center/software/embedded-software/i-mx-software/embedded-linux-for-i-mx-applications-processors:IMXLINUX" target="_blank"&gt;https://www.nxp.com/design/design-center/software/embedded-software/i-mx-software/embedded-linux-for-i-mx-applications-processors:IMXLINUX&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards&lt;/P&gt;</description>
    <pubDate>Tue, 17 Jun 2025 23:45:28 GMT</pubDate>
    <dc:creator>Bio_TICFSL</dc:creator>
    <dc:date>2025-06-17T23:45:28Z</dc:date>
    <item>
      <title>Fully_Connected Layer not able to convert on Neutron Graph while deploying the model on IMX95 NPU</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Fully-Connected-Layer-not-able-to-convert-on-Neutron-Graph-while/m-p/2114387#M238085</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I'm working on a custom computer vision model that uses Conv2D layers for feature extraction and a Dense (fully connected) layer for classification.&lt;/P&gt;&lt;P&gt;Here's what I've done so far:&lt;/P&gt;&lt;P&gt;Quantized the model to INT8&lt;/P&gt;&lt;P&gt;Converted it using the Neutron Converter for i.MX95 NPU&lt;/P&gt;&lt;P&gt;After conversion, I noticed that:&lt;/P&gt;&lt;P&gt;Only Conv2D layers are offloaded to the NPU&lt;/P&gt;&lt;P&gt;The fully connected layer remains on the CPU&lt;/P&gt;&lt;P&gt;A SLICE operator appears in the Neutron graph&lt;/P&gt;&lt;P&gt;I reviewed the i.MX95 User Manual, which lists the following constraints for fully connected layers:&lt;/P&gt;&lt;P&gt;Input tensor must be INT8&lt;/P&gt;&lt;P&gt;Weight tensor must be INT8 and constant&lt;/P&gt;&lt;P&gt;Bias tensor must be INT32 and constant&lt;/P&gt;&lt;P&gt;Output tensor must be INT8&lt;/P&gt;&lt;P&gt;Input and output channels must be multiples of NUM_MACS&lt;BR /&gt;(Otherwise, the converter adds PAD or SLICE operators)&lt;/P&gt;&lt;P&gt;Since I see a SLICE operator in the graph, it seems the output channel alignment is handled, but the fully connected layer still isn't offloaded to the NPU.&lt;/P&gt;&lt;P&gt;My Questions:&lt;BR /&gt;Why is the fully connected layer not being converted to NPU execution?&lt;/P&gt;&lt;P&gt;Is the SLICE operator related to this issue?&lt;/P&gt;&lt;P&gt;Am I missing any other constraints for fully connected layers?&lt;/P&gt;&lt;P&gt;I’ve attached the model file and screenshots of the Neutron graph for reference.&lt;/P&gt;&lt;P&gt;Thanks in advance for your help!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image (4).png" style="width: 224px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/342461i362C9456844D0E56/image-size/large?v=v2&amp;amp;px=999" role="button" title="image (4).png" alt="image (4).png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 11 Jun 2025 09:53:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Fully-Connected-Layer-not-able-to-convert-on-Neutron-Graph-while/m-p/2114387#M238085</guid>
      <dc:creator>varshilg</dc:creator>
      <dc:date>2025-06-11T09:53:45Z</dc:date>
    </item>
    <item>
      <title>Re: Fully_Connected Layer not able to convert on Neutron Graph while deploying the model on IMX95 NP</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Fully-Connected-Layer-not-able-to-convert-on-Neutron-Graph-while/m-p/2117026#M238262</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;What BSP and tools version are you using? are you part of Beta program?&lt;/P&gt;
&lt;P&gt;Regards&lt;/P&gt;</description>
      <pubDate>Mon, 16 Jun 2025 14:25:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Fully-Connected-Layer-not-able-to-convert-on-Neutron-Graph-while/m-p/2117026#M238262</guid>
      <dc:creator>Bio_TICFSL</dc:creator>
      <dc:date>2025-06-16T14:25:27Z</dc:date>
    </item>
    <item>
      <title>Re: Fully_Connected Layer not able to convert on Neutron Graph while deploying the model on IMX95 NP</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Fully-Connected-Layer-not-able-to-convert-on-Neutron-Graph-while/m-p/2117648#M238301</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;BSP Version:&lt;/P&gt;&lt;P&gt;ID=fsl-imx-xwayland&lt;BR /&gt;NAME="NXP i.MX Release Distro"&lt;BR /&gt;VERSION="6.6-scarthgap (scarthgap)"&lt;BR /&gt;VERSION_ID=6.6-scarthgap&lt;BR /&gt;VERSION_CODENAME="scarthgap"&lt;BR /&gt;PRETTY_NAME="NXP i.MX Release Distro 6.6-scarthgap (scarthgap)"&lt;BR /&gt;CPE_NAME="cpe:/o:openembedded:fsl-imx-xwayland:6.6-scarthgap"&lt;/P&gt;&lt;P&gt;eIQ :&lt;/P&gt;&lt;P&gt;eIQ Toolkit version - 1.14.0&lt;/P&gt;&lt;P&gt;eIQ Portal - 2.14.0&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Varshil&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 17 Jun 2025 09:40:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Fully-Connected-Layer-not-able-to-convert-on-Neutron-Graph-while/m-p/2117648#M238301</guid>
      <dc:creator>varshilg</dc:creator>
      <dc:date>2025-06-17T09:40:14Z</dc:date>
    </item>
    <item>
      <title>Re: Fully_Connected Layer not able to convert on Neutron Graph while deploying the model on IMX95 NP</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Fully-Connected-Layer-not-able-to-convert-on-Neutron-Graph-while/m-p/2118113#M238317</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;You should move to the latest BSP.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.nxp.com/design/design-center/software/embedded-software/i-mx-software/embedded-linux-for-i-mx-applications-processors:IMXLINUX" target="_blank"&gt;https://www.nxp.com/design/design-center/software/embedded-software/i-mx-software/embedded-linux-for-i-mx-applications-processors:IMXLINUX&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards&lt;/P&gt;</description>
      <pubDate>Tue, 17 Jun 2025 23:45:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Fully-Connected-Layer-not-able-to-convert-on-Neutron-Graph-while/m-p/2118113#M238317</guid>
      <dc:creator>Bio_TICFSL</dc:creator>
      <dc:date>2025-06-17T23:45:28Z</dc:date>
    </item>
    <item>
      <title>Re: Fully_Connected Layer not able to convert on Neutron Graph while deploying the model on IMX95 NP</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Fully-Connected-Layer-not-able-to-convert-on-Neutron-Graph-while/m-p/2122827#M238711</link>
      <description>&lt;P&gt;Hi team,&lt;/P&gt;&lt;P&gt;Thank you for your earlier suggestion to upgrade to the Latest BSP.&lt;/P&gt;&lt;P&gt;However, due to some software constraints, I am unable to migrate immediately.&lt;/P&gt;&lt;P&gt;Could you please help clarify:&lt;/P&gt;&lt;P&gt;1. Which key ML/NPU-related improvements (especially for TFLite delegate or Neutron delegate) are added in the latest BSP that are not supported in 6.6?&lt;/P&gt;&lt;P&gt;2. Specifically, is the support for FullyConnected layer mapping to the Neutron NPU added or fixed only in the latest BSP?&lt;/P&gt;&lt;P&gt;3. Are there updated versions of TFLite / NNRT / NPU delegate tools that are necessary for my use case (Vision AI model with Dense layers)?&lt;/P&gt;&lt;P&gt;I’m primarily working on deploying custom CNN models using TFLite, and want to make sure whether it’s absolutely essential to upgrade, or if there is a workaround or backport possibility.&lt;/P&gt;&lt;P&gt;Thank you in advance for your insights.&lt;/P&gt;&lt;P&gt;Best regards,&lt;BR /&gt;Varshil&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 25 Jun 2025 06:30:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Fully-Connected-Layer-not-able-to-convert-on-Neutron-Graph-while/m-p/2122827#M238711</guid>
      <dc:creator>varshilg</dc:creator>
      <dc:date>2025-06-25T06:30:49Z</dc:date>
    </item>
  </channel>
</rss>

