I'm using an imx8mn-evk and I'm using this reference manual: IMX-MACHINE-LEARNING-UG.pdf
I tried to run the PyTorch example pytorch_mobilenetv2.py from the imx-image-full but I got the following error:
" root@imx8mnevk:/usr/bin/pytorch/examples# python3 pytorch_mobilenetv2.py
Traceback (most recent call last):
File "pytorch_mobilenetv2.py", line 7, in <module>
import torch
File "/usr/lib/python3.7/site-packages/torch/__init__.py", line 190, in <module>
from torch._C import *
ImportError: /lib/libc.so.6: version `GLIBC_2.32' not found (required by /usr/lib/python3.7/site-packages/torch/lib/libtorch_python.so) "
I have downloaded that version, 2.32 in this way:
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
However, it did not work.
I guess LD_LIBRARY is not correctly installed but I can't find the error.
Has anyone worked with Pytorch before, and know how to make it run?
Thank you.