Hi, it was failed to perform benchmark for DSP_timing when I tested my network written by Tensorflow. The log shows below:
****************************************************************************
Hi, it was failed to perform benchmark for DSP_timing when I tested my network written by Tensorflow. The log shows below:
****************************************************************************
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.
Thanks for trying out SNPE. If it runs fine with snpe-net-run that is a good sign that your network is working with dsp.
What type of device are you using to test? Does this issue happen even after performing a fresh reboot of the device? Also, once you get the device to fail this benchmark, does snpe-net-run with --use_dsp still work ok?
The device is Oneplus5.
Yes, I reboot the phone but it also failed.
Yes, the snpe-net-run with --use_dsp works rightly on this device, but get wrong to benchmark for DSP_timing.
We might focus on the error "unable to normalize".
Does someone else meet this before?
Unable to normalize is expected. I can't remember why, but it's not the cause of this problem. We are able to benchmark a OnePlus 5 using dsp. You'll notice you'll see "unable to normalize" when manually invoking snpe-net-run.
The benchmark script simply invokes snpe-net-run. Can you try adb shell and go into "/data/local/tmp/snpebm/artifacts/arm-android-gcc4.9/bin" and run the script "snpe-bench_cmds.sh" there? (This is what the benchmark does.)
Also, can you provide logcat for the failure case please?
ok,run the script "snpe-bench_cmds.sh", it shows:
You can edit target_raw_list.txt and put absolute paths in there (instead of relative.)
Once you do that, try running each line of the shell script independently. One of the key factors for DSP runtime is the proper setting of ADSP_LIBRARY_PATH environment variable. To ensure that it is being set correctly, perhaps compare the value of that variable when running manually vs running with the benchmark shell script.