Hi I'm using snpeBuilder to create snpe object with DSP mode in my Android project. I'm using C++ native SNPE SDK.
My device is Moto X40, Qualcomm snapgragon 8Gen2, Android 13; my project Android SDK is 30.
In my project, I can get DSP runtime on device. But using snpeBuilder with DSP in runtimeList, there is error.
My code:
std::unique_ptr<zdl::SNPE::SNPE> snpe; zdl::DlSystem::PlatformConfig platformConfig; bool useUserSuppliedBuffers = false;zdl::DlSystem::Runtime_t runtime = zdl::DlSystem::Runtime_t::DSP; zdl::DlSystem::RuntimeList runtimeList; zdl::SNPE::SNPEBuilder snpeBuilder(container.get()); if(runtimeList.empty()) { runtimeList.add(runtime); }snpe = snpeBuilder.setOutputLayers({}) .setRuntimeProcessorOrder(runtimeList) .setUseUserSuppliedBuffers(useUserSuppliedBuffers) .setPlatformConfig(platformConfig) .setInitCacheMode(true) .build();
I get last error message:
Error message: error_code=401; error_message=Network creation has failed. error_code=401; error_message=Network creation has failed. QnnGraph_create() Failed: 6031; error_component=Dl Network; line_no=1805; thread_id=524124175536; error_component=Dl Network; line_no=342; thread_id=538500658424
Dear developer,
Could you please help to share your conversion and quantization commands to us?
Also, could you help to execute your model on devices with snpe-net-run?
BR.
Wei