Forums - Segmentation fault when snpe-tensorflow-to-dlc script is run, after successful conversion message

2 posts / 0 new
Last post
Segmentation fault when snpe-tensorflow-to-dlc script is run, after successful conversion message
prithviraj.yuvaraj
Join Date: 20 Feb 23
Posts: 1
Posted: Wed, 2023-02-22 23:48

using snpe v2.5.0, Ubuntu 18.04 in WSL2 environment and android ndk r17c. 

I am trying to convert the inception v3 .pb model to .dlc using the snpe-tensorflow-to-dlc script (following the tutorial in documentation). it seems the conversion is successful but the .dlc file is not getting written, giving me a segmentation fault at the end...

(myenv) prithviraj@LAPTOP-F4BRR7U4:/mnt/d/internStuff/snpe-2.5.0.4052/models/inception_v3/tensorflow$ snpe-tensorflow-to-dlc -i inception_v3_2016_08_28_frozen.pb --input_dim input "1,299,299,3" --out_node "InceptionV3/Predictions/Reshape_1" -o ../
2023-02-23 12:32:07.846322: W tensorflow/stream_executor/platform/default/dso_loader.cc:59] Could not load dynamic library 'libcudart.so.10.1'; dlerror: libcudart.so.10.1: cannot open shared object file: No such file or directory; LD_LIBRARY_PATH: /mnt/d/internStuff/snpe-2.5.0.4052/lib/x86_64-linux-clang:/mnt/d/internStuff/snpe-2.5.0.4052/lib/x86_64-linux-clang:
2023-02-23 12:32:07.846389: I tensorflow/stream_executor/cuda/cudart_stub.cc:29] Ignore above cudart dlerror if you do not have a GPU set up on your machine.
2023-02-23 12:32:59.642489: I tensorflow/core/platform/cpu_feature_guard.cc:142] This TensorFlow binary is optimized with oneAPI Deep Neural Network Library (oneDNN)to use the following CPU instructions in performance-critical operations:  AVX2 FMA
To enable them in other operations, rebuild TensorFlow with the appropriate compiler flags.
2023-02-23 12:32:59.787157: I tensorflow/core/platform/profile_utils/cpu_utils.cc:104] CPU Frequency: 2112005000 Hz
2023-02-23 12:32:59.791177: I tensorflow/compiler/xla/service/service.cc:168] XLA service 0x3311810 initialized for platform Host (this does not guarantee that XLA will be used). Devices:
2023-02-23 12:32:59.791251: I tensorflow/compiler/xla/service/service.cc:176]   StreamExecutor device (0): Host, Default Version
2023-02-23 12:32:59.821259: W tensorflow/stream_executor/platform/default/dso_loader.cc:59] Could not load dynamic library 'libcuda.so.1'; dlerror: libcuda.so.1: cannot open shared object file: No such file or directory; LD_LIBRARY_PATH: /mnt/d/internStuff/snpe-2.5.0.4052/lib/x86_64-linux-clang:/mnt/d/internStuff/snpe-2.5.0.4052/lib/x86_64-linux-clang:
2023-02-23 12:32:59.821328: W tensorflow/stream_executor/cuda/cuda_driver.cc:312] failed call to cuInit: UNKNOWN ERROR (303)
2023-02-23 12:32:59.821350: I tensorflow/stream_executor/cuda/cuda_diagnostics.cc:156] kernel driver does not appear to be running on this host (LAPTOP-F4BRR7U4): /proc/driver/nvidia/version does not exist
2023-02-23 12:33:04,061 - 214 - INFO - INFO_ALL_BUILDING_NETWORK:
    ==============================================================
    Building Network
    ==============================================================
2023-02-23 12:33:04,712 - 214 - INFO - Resolving static sub-graphs in network...
2023-02-23 12:33:04,892 - 214 - INFO - Resolving static sub-graphs in network, complete.
2023-02-23 12:33:05,295 - 214 - INFO - Processed 0 quantization encodings
2023-02-23 12:33:05,885 - 214 - INFO - INFO_INITIALIZATION_SUCCESS:
2023-02-23 12:33:06,011 - 214 - INFO - INFO_CONVERSION_SUCCESS: Conversion completed successfully
Segmentation fault
Help please 
  • Up0
  • Down0
weihuan
Join Date: 12 Apr 20
Posts: 270
Posted: Sat, 2023-02-25 21:26

Dear developer,

WSL is unstable envionment for SNPE converter. Could you please help to conver in ubuntu1804 host or docker?

BR.

Wei

  • 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.