Forums - libPyIrGraph.so file not found

4 posts / 0 new
Last post
libPyIrGraph.so file not found
gmartin
Join Date: 10 May 23
Posts: 3
Posted: Tue, 2023-05-16 16:42

I am getting an error when attempting to convert a pytorchscript file to dlc:

root@mini12940:~/snpe-2.9.0.4462# python --version

Python 3.6.9

root@mini12940:~/snpe-2.9.0.4462# python bin/setup_classifier.py 

Creating DLC

Traceback (most recent call last):

  File "/root/snpe-2.9.0.4462/bin/x86_64-linux-clang/snpe-pytorch-to-dlc", line 22, in <module>

    from qti.aisw.converters.common.utils.converter_utils import log_error

  File "/root/snpe-2.9.0.4462/lib/python/qti/aisw/converters/common/__init__.py", line 9, in <module>

    from . import libPyIrGraph as ir_graph

ImportError: /root/snpe-2.9.0.4462/lib/python/qti/aisw/converters/common/libPyIrGraph.so: cannot open shared object file: No such file or directory

The .so file is in the lib/python/qti/aisw/converters/common folder, yet it can't be imported as a module into python via the __init.py__import statement. Please help as I have tried everything I can think of to get it to be recognized.
I am on aarch64. libPyIrGraph is built for x86-64. That is the main problem. Do you have an aarch64 version of libPyIrGraph? 
Do you really support aarch64 platform?
 
I am in need of: libPyIrGraph.so built for ARM aarch64. Can you build and make this library available? It is needed in snpe-pytorch-to-dlc.py for the ARM aarch64 platform.
 
Please reply to my query.
Thank you.
  • Up0
  • Down0
prahladreddy1
Join Date: 21 May 23
Posts: 2
Posted: Sun, 2023-05-21 10:03

I had installed latest SNPE 2.10.40.4 and found this file libPyIrGraph.so.
You can try same.

  • Up0
  • Down0
rneti
Join Date: 16 Jun 22
Posts: 4
Posted: Sun, 2023-05-21 23:18

Currently users need to convert to DLC on X86 platform, and use the DLC on ARM64 platform. 

As I know, DLC conversion is not supported on ARM platform. Please try above approach

  • Up0
  • Down0
rneti
Join Date: 16 Jun 22
Posts: 4
Posted: Sun, 2023-05-21 23:19

Currently users need to convert to DLC on X86 platform, and use the DLC on ARM64 platform. 

As I know, DLC conversion is not supported on ARM platform. Please try above approach

  • Up0
  • Down0
or Register

Opinions expressed in the content posted here are the personal opinions of the original authors, and do not necessarily reflect those of Qualcomm Incorporated or its subsidiaries (“Qualcomm”). The content is provided for informational purposes only and is not meant to be an endorsement or representation by Qualcomm or any other party. This site may also provide links or references to non-Qualcomm sites and resources. Qualcomm makes no representations, warranties, or other commitments whatsoever about any non-Qualcomm sites or third-party resources that may be referenced, accessible from, or linked to this site.