Forums - [Bug] Dilated convolution doesn't work in some cases

1 post / 0 new
[Bug] Dilated convolution doesn't work in some cases
marseel
Join Date: 24 Aug 17
Posts: 2
Posted: Tue, 2018-02-13 18:15

Hi everyone,

I've been trying to use snpe and I have successfully run few models, but I am struggling with running a model that uses dilated convolution heavily. 

I've simplified problem and created a simple model that should help you reproduce a bug. 

I've created two models. Both models consist of two convolutions - one normal convolution and next one dilated convolution.

- 1st model uses dilated convolution with dilation rate = 4 and padding = 4

-2nd model uses dilated convolution with dilation rate = 8 and padding = 8

The first model runs successfully, but the second one unfortunately crashes. I am using snapdragon 835 and snpe-1.10.1.

Here you can find link to both models (caffe and dlc formats): 

https://drive.google.com/open?id=1S2DrZ34oeNtWYwnfIXm1CkJxia6bgOfo

Here is logcat output:

02-14 03:06:25.106 12962 13016 E com.qualcomm.qti.snpe.imageclassifiers: vendor/qcom/proprietary/adsprpc/src/apps_std_imp.c:538:Error 45: fopen failed for oemconfig.so. (No such file or directory)
02-14 03:06:25.107 12962 13016 E com.qualcomm.qti.snpe.imageclassifiers: vendor/qcom/proprietary/adsprpc/src/apps_std_imp.c:538:Error 45: fopen failed for testsig-0xb0ad583f.so. (No such file or directory)
02-14 03:06:25.107 12962 13016 E com.qualcomm.qti.snpe.imageclassifiers: vendor/qcom/proprietary/adsprpc/src/apps_std_imp.c:538:Error 45: fopen failed for testsig.so. (No such file or directory)
02-14 03:06:25.200  1796  1944 D AutomaticBrightnessController: drop the lightsensor event ,time=7965945 ,lux=4.467453
02-14 03:06:26.576   648  2789 E ANDR-PERF-OPTSHANDLER: Warning: Core control support not present for lock_max_cores on cluster 0 for this target
02-14 03:06:26.576   648  2789 E ANDR-PERF-RESOURCEQS: Failed to apply optimization [4, 1]
02-14 03:06:26.587  1796  4216 W InputMethodManagerService: Window already focused, ignoring focus gain of: com.android.internal.view.IInputMethodClient$Stub$Proxy@23c1940 attribute=null, token = android.os.BinderProxy@406cd28
02-14 03:06:26.913 12962 12996 D OpenGLRenderer: endAllActiveAnimators on 0x7f6b490400 (MenuPopupWindow$MenuDropDownListView) with handle 0x7f6b4c7c40
02-14 03:06:27.081   648  2789 E ANDR-PERF-OPTSHANDLER: perf_lock_rel: updated /sys/class/scsi_host/host0/../../../clkscale_enable with 1
02-14 03:06:27.081   648  2789 E ANDR-PERF-OPTSHANDLER:  return value 2
02-14 03:06:27.083   648  2789 E ANDR-PERF-RESOURCEQS: Failed to reset optimization [3, 0]
02-14 03:06:27.841   648  2789 E ANDR-PERF-OPTSHANDLER: Warning: Core control support not present for lock_max_cores on cluster 0 for this target
02-14 03:06:27.841   648  2789 E ANDR-PERF-RESOURCEQS: Failed to apply optimization [4, 1]
02-14 03:06:27.854 12962 12998 E AndroidRuntime: FATAL EXCEPTION: AsyncTask #2
02-14 03:06:27.854 12962 12998 E AndroidRuntime: Process: com.qualcomm.qti.snpe.imageclassifiers, PID: 12962
02-14 03:06:27.854 12962 12998 E AndroidRuntime: java.lang.RuntimeException: An error occurred while executing doInBackground()
02-14 03:06:27.854 12962 12998 E AndroidRuntime: 	at android.os.AsyncTask$3.done(AsyncTask.java:325)
02-14 03:06:27.854 12962 12998 E AndroidRuntime: 	at java.util.concurrent.FutureTask.finishCompletion(FutureTask.java:354)
02-14 03:06:27.854 12962 12998 E AndroidRuntime: 	at java.util.concurrent.FutureTask.setException(FutureTask.java:223)
02-14 03:06:27.854 12962 12998 E AndroidRuntime: 	at java.util.concurrent.FutureTask.run(FutureTask.java:242)
02-14 03:06:27.854 12962 12998 E AndroidRuntime: 	at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:243)
02-14 03:06:27.854 12962 12998 E AndroidRuntime: 	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1133)
02-14 03:06:27.854 12962 12998 E AndroidRuntime: 	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:607)
02-14 03:06:27.854 12962 12998 E AndroidRuntime: 	at java.lang.Thread.run(Thread.java:760)
02-14 03:06:27.854 12962 12998 E AndroidRuntime: Caused by: java.lang.IllegalStateException: Failed to forward propagate inputs! Cause: error_code=910; error_message=Undefined error. Failed to execute network.  Error code: -6.; error_component=SNPE; line_no=250; thread_id=547298505808
02-14 03:06:27.854 12962 12998 E AndroidRuntime: 	at com.qualcomm.qti.snpe.internal.NativeNetwork.nativeForward(Native Method)
02-14 03:06:27.854 12962 12998 E AndroidRuntime: 	at com.qualcomm.qti.snpe.internal.NativeNetwork.execute(NativeNetwork.java:120)
02-14 03:06:27.854 12962 12998 E AndroidRuntime: 	at com.qualcomm.qti.snpe.imageclassifiers.tasks.ClassifyImageTask.doInBackground(ClassifyImageTask.java:84)
02-14 03:06:27.854 12962 12998 E AndroidRuntime: 	at com.qualcomm.qti.snpe.imageclassifiers.tasks.ClassifyImageTask.doInBackground(ClassifyImageTask.java:29)
02-14 03:06:27.854 12962 12998 E AndroidRuntime: 	at android.os.AsyncTask$2.call(AsyncTask.java:305)
02-14 03:06:27.854 12962 12998 E AndroidRuntime: 	at java.util.concurrent.FutureTask.run(FutureTask.java:237)
02-14 03:06:27.854 12962 12998 E AndroidRuntime: 	... 4 more
02-14 03:06:27.857  2729  2755 I octvm_klo: klo lock
02-14 03:06:27.857  1796  4216 W ActivityManager:   Force finishing activity com.qualcomm.qti.snpe.imageclassifiers/.MainActivity
02-14 03:06:27.857  4227  4374 I WtProcessController: Receive am_crash event for pid: 12962 pkg = com.qualcomm.qti.snpe.imageclassifiers
02-14 03:06:27.857  4227  4374 W KloServer: Aborted broadcast does not supprt for: com.qualcomm.qti.snpe.imageclassifiers
*/

Let me know if you can reproduce this problem and if there is anything I can do to fix it.

 

Thank you!

  • Up0
  • Down0

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.