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=02019-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 line2019-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=02019-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 0x7a4409f3e02019-03-08 10:34:12.759 12213-24552/com.qualcomm.qti.snpe.imageclassifiers I/LoadNetworkTask: loading network size=412019-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=02019-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=02019-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=524881491184java.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=524881491184at 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)
- Snapdragon 845
- Android NDK 17c
- SNPE version 1.23.1
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
I receive the following error
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
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.