Function Snpe_BuildConfig_SetAcceleratedInit¶
Defined in File PSNPE.h
Function Documentation¶
-
Snpe_ErrorCode_t Snpe_BuildConfig_SetAcceleratedInit(Snpe_BuildConfig_Handle_t bcHandle, bool acceleratedInit)¶
Sets the accelerated init mode for HTP runtime for execution from an offline prepared cache. If DLC without HTP cache is called with this mode, the program terminates. Init acceleration requires cache prepared with current SDK; older cache falls back to regular initialization. If an offline prepared model with an invalid cache is discovered, the program continues normal execution with a warning.
- Parameters
bcHandle – [in] Handle to access the object of snpe build config
acceleratedInit – [in] Boolean If set to true, enables HTP Init accelerate.
Note
Init time is reduced by using more resources. This would cause execution to slow down if executes are done concurrently with initialization. This should only be used for an offline prepared DLC, for DSP (HTP) runtime. Default value is false.