MobilenetSSD - Failed to create tensor
Join Date: 4 Sep 18
Posts: 1
Posted: Wed, 2018-10-03 08:25
Hi,
I have slight modified version of mobilenet SSD caffe which i have trained. While doing inferencing on SNPE 1.18.0 (using android app) we see a crash and it say "cannot create a tensor" . Tested Inference on x86 cpu and it works (not on SNPE).
here is the log snippet:
01-02 02:02:36.224 26918 26918 W snpe-android: Failed to create tensor object from with shape: (1,1,0,7,)
01-02 02:02:36.224 26918 26918 D AndroidRuntime: Shutting down VM
--------- beginning of crash
01-02 02:02:36.224 26918 26918 E AndroidRuntime: FATAL EXCEPTION: main
01-02 02:02:36.224 26918 26918 E AndroidRuntime: Process: xxx.apps.xxx.com.androidxx, PID: 26918
01-02 02:02:36.224 26918 26918 E AndroidRuntime: java.lang.IllegalStateException: Unable to create native tensor!
01-02 02:02:36.224 26918 26918 E AndroidRuntime: at com.qualcomm.qti.snpe.internal.NativeFloatTensor.nativeInit(Native Method)
Please can you share your thoughts on what exactly i'm doing wrong here.
thanks
Hi,
This error usually comes when the size of the input bitmap image in the Android application is not matching with the model's input shape. Try to resize the input bitmap image according to the shape defined in the model.
If the error still persists please share the code to analyze and debug further.
Thank you.