Function Snpe_SNPEBuilder_SetInitCacheMode¶
Defined in File SNPEBuilder.h
Function Documentation¶
-
Snpe_ErrorCode_t Snpe_SNPEBuilder_SetInitCacheMode(Snpe_SNPEBuilder_Handle_t snpeBuilderHandle, int cacheMode)¶
Sets the mode of init caching functionality.
- Parameters
snpeBuilderHandle – [in] Handle to access the SNPEBuilder object
mode – [in] Boolean. This flag enables/disables the functionality of init caching. When init caching functionality is enabled, a set of init caches will be created during network building/initialization process and will be added to DLC container. If such DLC container is saved by the user, in subsequent network building/initialization processes these init caches will be loaded from the DLC so as to reduce initialization time. In disable mode, no init caches will be added to DLC container.