Hello, I am trying to run
snpe-dlc-quantize --input_dlc inception_v3.dlc --input_list /home/snpe-1.45.3.2435/models/inception_v3/data/cropped/raw_list.txt --output_dlc inception_v3_quantized.dlc --enable_htp
Error report due to using --enable_htp
[INFO] Writing quantized model to: inception_v3_quantized.dlc
[ERROR] SnpeQnnController::Load Cannot load symbol QnnBackend_initialize : snpe-dlc-quantize: undefined symbol: QnnBackend_initialize
[ERROR] Unable to loadQnnFunction QnnBackend_initialize
[ERROR] SnpeQnnController::Load Cannot load symbol QnnBackend_terminate : snpe-dlc-quantize: undefined symbol: QnnBackend_terminate
[ERROR] Unable to loadQnnFunction QnnBackend_terminate
.....
Couldn't initialize Htp Offline Prepare Backend
I do not understand why this error is happening or how to fix it. Any help or insight would be greatly apprectiate
got the save problem trying to quatify a dlc (transferred from onnx) with '--enable_htp'
snpe version==1.47.0.2501
it runs fine without '--enable_htp' but once added it crushed
then i tried '--enable_hta' and it crushed too, with outputs :
does any one get a solution? thanks very much !
The same ERROR reported when using --enable_htp.
------
I checked the dependencies once again, and installed the libc++-9-dev using: sudo apt-get install libc++-9-dev=1:9-2~ubuntu18.04.2.
As a result, the error disappeared.
-----
I also installed the clang: sudo apt-get install clang
I faced the similar issue - carsh after enabling --enable-hta function. Turned out that snpe-dlc-quantize was trying to load symbol from library that is not in the LD_LIBRARY_PATH.
1) Search which library has the symbol and it's path
user@ubuntu:~/work/snpe-1.60.0.3313$ grep -r QnnInterface_getProviders *
Binary file bin/x86_64-linux-clang/snpe-dlc-quantize matches
Binary file lib/dsp/libsnpe_dsp_v68_domains_v3_skel.so matches
Binary file lib/x86_64-linux-clang/libHtpPrepare.so matches
2) Update LD_LIBRARY_PATH
user@ubuntu:$ export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$SNPE_ROOT/lib/x86_64-linux-clang/
I am facing the same issue. The path to HTP backends are set in LD_LIBRARY_PATH. I am using SNPE-1.54. Please see the logs below: