Hello,
We try to use snpe to support AI operations; but the setBuilderOptions( ) function is not fast enough.
We don‘t know if it is normal?
And, how to shorten the time of “setBuilderOptions( )”?
Details as follows:
On sdm450 device : CPUruntime 500 - 700ms , GPUruntime 4000ms.
On Snapdragon810 : CPUruntime 400 - 500 ms, GPUruntime 1300ms.
We tryed snpe1.8.0 1.10.1 1.12.0 and the last 1.13.0,they spent about the same time。
We used examples\NativeCpp:
examples\NativeCpp\SampleCode\jni\main.cpp
std::unique_ptr<zdl::SNPE::SNPE> snpe = setBuilderOptions(container, runtime, udlBundle, useUserSuppliedBuffers);
examples\NativeCpp\SampleCode\jni\SetBuilderOptions.cpp
std::unique_ptr<zdl::SNPE::SNPE> snpe;
zdl::SNPE::SNPEBuilder snpeBuilder(container.get());
snpe = snpeBuilder.setOutputLayers({})
.setRuntimeProcessor(runtime)
.setUdlBundle(udlBundle)
.setUseUserSuppliedBuffers(useUserSuppliedBuffers)
.build();
wish reply, thank you.