<?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 imx8mn-evk full-image pytorch execution error in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/imx8mn-evk-full-image-pytorch-execution-error/m-p/1309875#M177150</link>
    <description>&lt;P&gt;I'm using an imx8mn-evk and I'm using this reference manual: &lt;A href="https://www.nxp.com/docs/en/user-guide/IMX-MACHINE-LEARNING-UG.pdf" target="_blank" rel="noopener"&gt;IMX-MACHINE-LEARNING-UG.pdf&lt;BR /&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I tried to run the PyTorch example &lt;EM&gt;pytorch_mobilenetv2.py &lt;/EM&gt;from the imx-image-full but I got the following error:&lt;/P&gt;&lt;P&gt;" &lt;EM&gt;root@imx8mnevk:/usr/bin/pytorch/examples# python3 pytorch_mobilenetv2.py &lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;Traceback (most recent call last):&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;File "pytorch_mobilenetv2.py", line 7, in &amp;lt;module&amp;gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;import torch&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;File "/usr/lib/python3.7/site-packages/torch/__init__.py", line 190, in &amp;lt;module&amp;gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;from torch._C import *&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;ImportError: /lib/libc.so.6: version `GLIBC_2.32' &lt;STRONG&gt;not found&lt;/STRONG&gt; (required by /usr/lib/python3.7/site-packages/torch/lib/libtorch_python.so) "&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;I have downloaded that version, 2.32 in this way:&lt;/P&gt;&lt;PRE&gt;wget http://ftp.gnu.org/gnu/glibc/glibc-2.32.tar.gz
tar zxvf glibc-2.32.tar.gz
cd glibc-2.32
mkdir build
cd build
../configure --prefix=/opt/glibc-2.32
make -j4
sudo make install
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/opt/glibc-2.32/lib&lt;/PRE&gt;&lt;P&gt;However, it did not work.&lt;/P&gt;&lt;P&gt;I guess LD_LIBRARY is not correctly installed but I can't find the error.&lt;/P&gt;&lt;P&gt;Has anyone worked with Pytorch before, and know how to make it run?&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;</description>
    <pubDate>Mon, 19 Jul 2021 13:02:23 GMT</pubDate>
    <dc:creator>SoniaArevalo</dc:creator>
    <dc:date>2021-07-19T13:02:23Z</dc:date>
    <item>
      <title>imx8mn-evk full-image pytorch execution error</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/imx8mn-evk-full-image-pytorch-execution-error/m-p/1309875#M177150</link>
      <description>&lt;P&gt;I'm using an imx8mn-evk and I'm using this reference manual: &lt;A href="https://www.nxp.com/docs/en/user-guide/IMX-MACHINE-LEARNING-UG.pdf" target="_blank" rel="noopener"&gt;IMX-MACHINE-LEARNING-UG.pdf&lt;BR /&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I tried to run the PyTorch example &lt;EM&gt;pytorch_mobilenetv2.py &lt;/EM&gt;from the imx-image-full but I got the following error:&lt;/P&gt;&lt;P&gt;" &lt;EM&gt;root@imx8mnevk:/usr/bin/pytorch/examples# python3 pytorch_mobilenetv2.py &lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;Traceback (most recent call last):&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;File "pytorch_mobilenetv2.py", line 7, in &amp;lt;module&amp;gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;import torch&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;File "/usr/lib/python3.7/site-packages/torch/__init__.py", line 190, in &amp;lt;module&amp;gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;from torch._C import *&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;ImportError: /lib/libc.so.6: version `GLIBC_2.32' &lt;STRONG&gt;not found&lt;/STRONG&gt; (required by /usr/lib/python3.7/site-packages/torch/lib/libtorch_python.so) "&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;I have downloaded that version, 2.32 in this way:&lt;/P&gt;&lt;PRE&gt;wget http://ftp.gnu.org/gnu/glibc/glibc-2.32.tar.gz
tar zxvf glibc-2.32.tar.gz
cd glibc-2.32
mkdir build
cd build
../configure --prefix=/opt/glibc-2.32
make -j4
sudo make install
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/opt/glibc-2.32/lib&lt;/PRE&gt;&lt;P&gt;However, it did not work.&lt;/P&gt;&lt;P&gt;I guess LD_LIBRARY is not correctly installed but I can't find the error.&lt;/P&gt;&lt;P&gt;Has anyone worked with Pytorch before, and know how to make it run?&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Mon, 19 Jul 2021 13:02:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/imx8mn-evk-full-image-pytorch-execution-error/m-p/1309875#M177150</guid>
      <dc:creator>SoniaArevalo</dc:creator>
      <dc:date>2021-07-19T13:02:23Z</dc:date>
    </item>
    <item>
      <title>Re: imx8mn-evk full-image pytorch execution error</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/imx8mn-evk-full-image-pytorch-execution-error/m-p/1310460#M177201</link>
      <description>&lt;P&gt;Hello Sonia&lt;/P&gt;
&lt;P&gt;The examples in machine learning are for the MX8MPlus, since you have not used this not going to be supported.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards&lt;/P&gt;</description>
      <pubDate>Tue, 20 Jul 2021 13:10:29 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/imx8mn-evk-full-image-pytorch-execution-error/m-p/1310460#M177201</guid>
      <dc:creator>Bio_TICFSL</dc:creator>
      <dc:date>2021-07-20T13:10:29Z</dc:date>
    </item>
    <item>
      <title>Re: imx8mn-evk full-image pytorch execution error</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/imx8mn-evk-full-image-pytorch-execution-error/m-p/1311053#M177258</link>
      <description>&lt;P&gt;Many thanks for your answer.&lt;/P&gt;&lt;P&gt;I have been trying an other alternative:&amp;nbsp;I installed Pytorch in my imx-image-core, first, the version was 1.9.0, wich I got a message about an "Ilegal Instruction" and I achieved to fixed it changing the version to a lower one (1.8.0), however, it was not completely succesful due to this warning: "&lt;EM&gt;OpenBLAS Warning : Detect OpenMP Loop and this application may hang. Please rebuild the library with USE_OPENMP=1 option"&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;Would you know about any more solution to include Pytorch packages to my image in the IMX8mn-evk?&lt;/P&gt;&lt;P&gt;Thanks in advance, I will be waIting for news ASAP.&lt;/P&gt;</description>
      <pubDate>Wed, 21 Jul 2021 07:20:24 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/imx8mn-evk-full-image-pytorch-execution-error/m-p/1311053#M177258</guid>
      <dc:creator>SoniaArevalo</dc:creator>
      <dc:date>2021-07-21T07:20:24Z</dc:date>
    </item>
    <item>
      <title>Re: imx8mn-evk full-image pytorch execution error</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/imx8mn-evk-full-image-pytorch-execution-error/m-p/1333081#M179428</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;Got to this ticket while investigating a similar issue. A couple of comments:&lt;/P&gt;
&lt;P&gt;1. This is a known issue, fixed in&amp;nbsp;LF5.10.x.&amp;nbsp; A workaround for 5.4.x is to reinstall the wheel pkgs.&lt;BR /&gt;&lt;A class="external-link" href="https://github.com/NXPmicro/pytorch-release/tree/imx_5.4.47_2.2.0/whl/torch-1.6.0-cp37-cp37m-linux_aarch64.whl" target="_blank" rel="nofollow noopener"&gt;https://github.com/NXPmicro/pytorch-release/tree/imx_5.4.47_2.2.0/whl/torch-1.6.0-cp37-cp37m-linux_aarch64.whl&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A class="external-link" href="https://github.com/NXPmicro/pytorch-release/tree/imx_5.4.47_2.2.0/whl/" target="_blank" rel="nofollow noopener"&gt;https://github.com/NXPmicro/pytorch-release/tree/imx_5.4.47_2.2.0/whl/&lt;/A&gt;torchvision-0.7.0-cp37-cp37m-linux_aarch64.whl&lt;/P&gt;
&lt;P&gt;2. eIQ in general, and the example's in the ML User's guide are supported across all i.MX 8 family, not just 8MP. Depending on the platform, the ML compute unit can be different (e.g., for 8MPlus: NPU, GPU or CPU; for 8MNano: CPU). This compute unit can be set through a flag at runtime; for now pytorch only supports the CPU.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Raluca&lt;/P&gt;</description>
      <pubDate>Wed, 01 Sep 2021 08:38:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/imx8mn-evk-full-image-pytorch-execution-error/m-p/1333081#M179428</guid>
      <dc:creator>raluca_popa</dc:creator>
      <dc:date>2021-09-01T08:38:53Z</dc:date>
    </item>
  </channel>
</rss>

