Forums - Failed to build network with DSP runtime

3 posts / 0 new
Last post
Failed to build network with DSP runtime
pawissakan.ch
Join Date: 12 Feb 19
Posts: 1
Posted: Sat, 2019-03-09 22:32

Hello

I am trying to modify the Android example in SNPE SDK to load my own model. My model can be built with CPU and GPU runtime.

With DSP runtime, the app failed to build my model and logged following messages:

2019-03-08 10:34:08.568 12213-12213/com.qualcomm.qti.snpe.imageclassifiers W/snpe-net-run: type=1400 audit(0.0:145321): avc: denied { search } for comm=4173796E635461736B20233336 name="ctx" dev="debugfs" ino=15054 scontext=u:r:untrusted_app:s0:c210,c256,c512,c768 tcontext=u:object_r:qti_debugfs:s0 tclass=dir permissive=0
2019-03-08 10:34:08.728 12213-12213/com.qualcomm.qti.snpe.imageclassifiers I/chatty: uid=2000(shell) com.qualcomm.qti.snpe.imageclassifiers identical 1 line
2019-03-08 10:34:08.798 12213-12213/com.qualcomm.qti.snpe.imageclassifiers W/snpe-net-run: type=1400 audit(0.0:145323): avc: denied { search } for comm=4173796E635461736B20233336 name="ctx" dev="debugfs" ino=15054 scontext=u:r:untrusted_app:s0:c210,c256,c512,c768 tcontext=u:object_r:qti_debugfs:s0 tclass=dir permissive=0
2019-03-08 10:34:09.870 12213-24550/com.qualcomm.qti.snpe.imageclassifiers I/LoadNetworkTask: done loading network...
2019-03-08 10:34:11.798 12213-12244/com.qualcomm.qti.snpe.imageclassifiers D/OpenGLRenderer: endAllActiveAnimators on 0x7a3d2e6e00 (DropDownListView) with handle 0x7a4409f3e0
2019-03-08 10:34:12.759 12213-24552/com.qualcomm.qti.snpe.imageclassifiers I/LoadNetworkTask: loading network size=41
2019-03-08 10:34:12.868 12213-12213/com.qualcomm.qti.snpe.imageclassifiers W/snpe-net-run: type=1400 audit(0.0:145324): avc: denied { search } for comm=4173796E635461736B20233338 name="ctx" dev="debugfs" ino=15054 scontext=u:r:untrusted_app:s0:c210,c256,c512,c768 tcontext=u:object_r:qti_debugfs:s0 tclass=dir permissive=0
2019-03-08 10:34:13.058 12213-12213/com.qualcomm.qti.snpe.imageclassifiers W/snpe-net-run: type=1400 audit(0.0:145325): avc: denied { search } for comm=4173796E635461736B20233338 name="ctx" dev="debugfs" ino=15054 scontext=u:r:untrusted_app:s0:c210,c256,c512,c768 tcontext=u:object_r:qti_debugfs:s0 tclass=dir permissive=0
2019-03-08 10:34:13.863 12213-24552/com.qualcomm.qti.snpe.imageclassifiers E/LoadNetworkTask: Unable to create network! Cause: error_code=910; error_message=DSP runtime system error. Failed to load network.  Error code: -6.; error_component=DSP Runtime; line_no=328; thread_id=524881491184
    java.lang.IllegalStateException: Unable to create network! Cause: error_code=910; error_message=DSP runtime system error. Failed to load network.  Error code: -6.; error_component=DSP Runtime; line_no=328; thread_id=524881491184
        at com.qualcomm.qti.snpe.internal.NativeNetwork.nativeInitFromFile(Native Method)
        at com.qualcomm.qti.snpe.internal.NativeNetwork.<init>(NativeNetwork.java:104)
        at com.qualcomm.qti.snpe.SNPE$NeuralNetworkBuilder.build(SNPE.java:272)
        at com.qualcomm.qti.snpe.imageclassifiers.tasks.LoadNetworkTask.doInBackground(LoadNetworkTask.java:63)
        at com.qualcomm.qti.snpe.imageclassifiers.tasks.LoadNetworkTask.doInBackground(LoadNetworkTask.java:22)
        at android.os.AsyncTask$2.call(AsyncTask.java:333)
        at java.util.concurrent.FutureTask.run(FutureTask.java:266)
        at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:245)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
        at java.lang.Thread.run(Thread.java:764)
Enviroment
  • Snapdragon 845
  • Android NDK 17c
  • SNPE version 1.23.1

 

I have tested with Inception_v3 model. It works fine with all runtime.
How can I fix this problem?
 
Thanks.
  • Up0
  • Down0
jascha.ulrich
Join Date: 29 Jun 18
Posts: 1
Posted: Tue, 2019-04-02 06:35

Dear all,

I experience a similar problem as the original author.

When I try to run the my model on the device snpe-net-run on the DSP with a call as

snpe-net-run --container model.dlc --input_list my_inputs.txt --use_dsp

I receive the following error

error_code=910; error_message=DSP runtime system error. Failed to execute network.  Error code: -6.; error_component=DSP Runtime; line_no=369; thread_id=547748483048

I have verified that I can sucessfully run the snpe-net-run call on the Linux host system (also when specifying use_dsp).

I also observe the same error when I use the Java runtime and try to execute the (successfully built) network with a call to  snpeNetwork.execute(inputs).

I can successfully run both on the CPU and on the GPU.

Any pointers regarding the root cause of this behaviour and possible fixes would be appreciated.

Environment

Snapdragon 820

Android NDK 15c

SNPE version 1.24

  • Up0
  • Down0
2753536587
Join Date: 18 Mar 19
Posts: 5
Posted: Mon, 2019-04-08 00:36

Hi pawissakan:

     May I have your trouble. You can run Inception_v3 mode with all runtime. Could you tell me about convert params ?

I used params with setup_inception with NPE SDK directly, and failed run with GPU and DSP.

    errors in GPU:

Unable to create network! Cause: error_code=802; error_message=Layer parameter value is invalid in GPU. Layer input:0 : output rank greater than 3D is not supported.; error_component=GPU Runtime; 

    errors in DSP:

    Unable to create network! Cause: error_code=902; error_message=Layer parameter value is invalid in DSP. Layer InceptionV3/InceptionV3/Conv2d_1a_3x3/convolution: Maximum number of output dimensions(3) exceeded. 4 output dimension were given for DSP runtime.; error_component=DSP Runtime; 

 

Thank you very much.

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