I build sample NativeCpp code from snpe-1.55 on Ubuntu x86-64 and run it with CPU runtime.
After running my network, the snpe-sample outputs the output layer and the SNPEDiag.log but when I
check the SNPEDiag.log by using snpe-diagview tool, the all time fields are zero values.
I also run the same network and input image with snpe-net-run tool, the SNPEDiag.log looks resonable,
it shows all running time of each layer.
What's different of logger between snpe-net-run and NativeCpp?
Thank you.
Thanks for reporting this issue.
We will have look and get back to you.
Thanks
Thanks for reporting this question.
Could you please add .setProfilingLevel(zdl::DlSystem::ProfilingLevel_t::DETAILED) in "SetBuilderOptions.cpp" when creating snpe instance, such as:
Hi ronghui,
I appreciate your fast support and the solution works well. The result is the same as snpe-net-run tool. ^^
I am wondering can we have the access right to the source code of snpe-net-run? it is because I am facing another dsp issue
The same network can run on snpe-net-run with dsp runtime but failed on snpe-sample.
Is there anything we should modify for snpe-sample in order to use dsp runtime?
Our platform info: aarch64-android-clang6.0 and dsp_v66
Thank you.
Sorry, netrun code is not open.
You can add dsp runtime as below:
in "SetBuilderOptions.cpp" when creating snpe instance, such as: