File RuntimeConfigList.h¶
↰ Parent directory (SNPE)
Contents
Definition (SNPE/RuntimeConfigList.h)¶
Includes¶
DlSystem/DlEnums.h(File DlEnums.h)DlSystem/DlError.h(File DlError.h)DlSystem/PlatformConfig.h(File PlatformConfig.h)DlSystem/RuntimeList.h(File RuntimeList.h)DlSystem/SNPEPerfProfile.h(File SNPEPerfProfile.h)DlSystem/SnpeApiExportDefine.h(File SnpeApiExportDefine.h)DlSystem/TensorShapeMap.h(File TensorShapeMap.h)stddef.h
Included By¶
Functions¶
Full File Listing¶
Typedefs
-
typedef void *Snpe_RuntimeConfig_Handle_t¶
A typedef to indicate a SNPE RuntimeConfig handle.
-
typedef void *Snpe_RuntimeConfigList_Handle_t¶
A typedef to indicate a SNPE RuntimeConfigList handle.
Functions
-
Snpe_RuntimeConfig_Handle_t Snpe_RuntimeConfig_Create()¶
Create a new runtime config.
-
Snpe_RuntimeConfig_Handle_t Snpe_RuntimeConfig_CreateCopy(Snpe_RuntimeConfig_Handle_t rcHandle)¶
Copy-Constructs a RuntimeConfig and returns a handle to it.
- Parameters
rcHandle – [in] Handle to access the runtime config.
- Returns
a runtime config object.
-
Snpe_ErrorCode_t Snpe_RuntimeConfig_Delete(Snpe_RuntimeConfig_Handle_t rcHandle)¶
Destroys the RuntimeConfig.
- Parameters
rcHandle – [in] Handle to access the runtime config.
- Returns
Error code. Returns SNPE_SUCCESS if destruction successful.
-
Snpe_Runtime_t Snpe_RuntimeConfig_GetRuntime(Snpe_RuntimeConfig_Handle_t rcHandle)¶
Returns the Runtime from runtime config.
- Parameters
rcHandle – [in] Handle to access the runtime config.
- Returns
Returns the Runtime.
-
Snpe_ErrorCode_t Snpe_RuntimeConfig_SetRuntime(Snpe_RuntimeConfig_Handle_t rcHandle, Snpe_Runtime_t runtime)¶
Set the Runtime into runtime config.
- Parameters
rcHandle – [in] Handle to access the runtime config.
runtime – [in] The Runtime.
- Returns
SNPE_SUCCESS on success.
-
Snpe_ErrorCode_t Snpe_RuntimeConfig_SetRuntimeList(Snpe_RuntimeConfig_Handle_t rcHandle, Snpe_RuntimeList_Handle_t rlHandle)¶
Set snpe runtime list into psnpe runtime config.
- Parameters
rcHandle – [in] Handle to access the runtime config.
rlHandle – [in] Handle to access the runtime list.
- Returns
Error code. Ruturns SNPE_SUCCESS if the runtime list added successfully.
-
Snpe_RuntimeList_Handle_t Snpe_RuntimeConfig_GetRuntimeList_Ref(Snpe_RuntimeConfig_Handle_t rcHandle)¶
Get the snpe runtime list from runtime config.
- Parameters
rcHandle – [in] Handle to access the runtime config.
- Returns
Returns snpe runtime list.
-
Snpe_PerformanceProfile_t Snpe_RuntimeConfig_GetPerformanceProfile(Snpe_RuntimeConfig_Handle_t rcHandle)¶
Get the performance profile type from runtime config.
- Parameters
rcHandle – [in] Handle to access the runtime config.
- Returns
Returns the Performance Profile.
-
Snpe_ErrorCode_t Snpe_RuntimeConfig_SetPerformanceProfile(Snpe_RuntimeConfig_Handle_t rcHandle, Snpe_PerformanceProfile_t perfProfile)¶
Set the performance profile into runtime config.
- Parameters
rcHandle – [in] Handle to access the runtime config.
perfProfile – [in] The performance profile level.
- Returns
Error code. Ruturns SNPE_SUCCESS if the runtime list added successfully.
-
Snpe_ErrorCode_t Snpe_RuntimeConfig_SetCustomPerfProfile(Snpe_RuntimeConfig_Handle_t rcHandle, Snpe_SNPEPerfProfile_Handle_t perfProfileHandle)¶
Set the custom performance profile into runtime config.
- Parameters
rcHandle – [in] Handle to access the runtime config.
perfProfileHandle – [in] Handle to access the SNPEPerfProfile.
- Returns
Error code. Ruturns SNPE_SUCCESS if the runtime list added successfully.
-
int Snpe_RuntimeConfig_GetEnableCPUFallback(Snpe_RuntimeConfig_Handle_t rcHandle)¶
Get true(1) or false(0) about enabling cpu fallback for runtime config.
- Parameters
rcHandle – [in] Handle to access the runtime config.
- Returns
Returns 1 or 0.
-
Snpe_ErrorCode_t Snpe_RuntimeConfig_SetEnableCPUFallback(Snpe_RuntimeConfig_Handle_t rcHandle, int enableCpuFallback)¶
Set 1 or 0 about enabling cpu fallback for runtime config.
- Parameters
rcHandle – [in] Handle to access the runtime config.
enableCpuFallback – [in] If true = 1 or false = 0.
- Returns
Returns SNPE_SUCCESS if the enableCpuFallback added successfully.
-
Snpe_ErrorCode_t Snpe_RuntimeConfig_SetPlatformOptionLocal(Snpe_RuntimeConfig_Handle_t rcHandle, Snpe_PlatformConfig_Handle_t pcHandle)¶
Set the PlatformOptionLocal for runtime config.
- Parameters
rcHandle – [in] Handle to access the runtime config.
pcHandle – [in] Handle to access platformConfig.
- Returns
Returns SNPE_SUCCESS if the PlatformOptionLocal added successfully.
-
Snpe_PlatformConfig_Handle_t Snpe_RuntimeConfig_GetPlatformOptionLocal_Ref(Snpe_RuntimeConfig_Handle_t rcHandle)¶
Get the PlatformOptionLocal from runtime config.
- Parameters
rcHandle – [in] Handle to access the runtime config.
- Returns
Returns Handle to access platformConfig.
-
Snpe_ErrorCode_t Snpe_RuntimeConfig_SetInputDimensionsMap(Snpe_RuntimeConfig_Handle_t rcHandle, Snpe_TensorShapeMap_Handle_t tsmHandle)¶
Set the input dimension map for runtime config.
- Parameters
rcHandle – [in] Handle to access the runtime config.
tsmHandle – [in] Handle to access the tensor shap map.
- Returns
Returns SNPE_SUCCESS if the tensor shap map added successfully.
-
Snpe_TensorShapeMap_Handle_t Snpe_RuntimeConfig_GetInputDimensionsMap_Ref(Snpe_RuntimeConfig_Handle_t rcHandle)¶
Get the input dimension map from runtime config.
- Parameters
rcHandle – [in] Handle to access the runtime config.
- Returns
Returns the TensorShapeMap.
-
Snpe_RuntimeConfigList_Handle_t Snpe_RuntimeConfigList_Create()¶
Create a new runtime config list.
-
Snpe_RuntimeConfigList_Handle_t Snpe_RuntimeConfigList_CreateSize(size_t size)¶
set the size of runtime config list.
- Parameters
size – [in] size of runtime config list.
-
Snpe_ErrorCode_t Snpe_RuntimeConfigList_Delete(Snpe_RuntimeConfigList_Handle_t rclHandle)¶
Destroys the RuntimeConfigList.
- Parameters
rcHandle – [in] Handle to access the runtime config list.
- Returns
Error code. Returns SNPE_SUCCESS if destruction successful.
-
Snpe_ErrorCode_t Snpe_RuntimeConfigList_PushBack(Snpe_RuntimeConfigList_Handle_t rclHandle, Snpe_RuntimeConfig_Handle_t rcHandle)¶
Push runtime config into runtime config list.
- Parameters
rclHandle – [in] Handle to access the runtime config list.
rcHandle – [in] Handle to access the runtime config.
- Returns
Error code. Returns SNPE_SUCCESS if runtime config pushed successfully.
-
Snpe_RuntimeConfig_Handle_t Snpe_RuntimeConfigList_At_Ref(Snpe_RuntimeConfigList_Handle_t rclHandle, size_t idx)¶
Returns the Runtime Config from list at position index.
- Parameters
rclHandle – [in] Handle to access the runtime config list.
idx – [in] Position in runtimeList.
- Returns
Returns the runtime config from list at position index.
-
Snpe_ErrorCode_t Snpe_RuntimeConfigList_Assign(Snpe_RuntimeConfigList_Handle_t rclSrcHandle, Snpe_RuntimeConfigList_Handle_t rclDstHandle)¶
Copy-assigns the contents of rclSrcHandle into rclDstHandle.
- Parameters
rclHandle – [in] Source RuntimeConfigList handle.
idx – [in] Destination RuntimeConfigList handle.
- Returns
SNPE_SUCCESS on successful copy-assignment.
-
size_t Snpe_RuntimeConfigList_Size(Snpe_RuntimeConfigList_Handle_t rclHandle)¶
Returns the number of runtime configs in the list.
- Parameters
rclHandle – [in] Handle to access the runtime config list.
- Returns
Returns number of entries in the runtimeConfigList.
-
size_t Snpe_RuntimeConfigList_Capacity(Snpe_RuntimeConfigList_Handle_t rclHandle)¶
Returns the capacity of runtime configs in the list.
- Parameters
rclHandle – [in] Handle to access the runtime config list.
- Returns
Returns number of capacity in the runtimeConfigList.
-
Snpe_ErrorCode_t Snpe_RuntimeConfigList_Clear(Snpe_RuntimeConfigList_Handle_t rclHandle)¶
Removes all runtime configs from the list.
- Parameters
rclHandle – [in] Handle to access the runtime config list.
- Returns
Error code. Returns SNPE_SUCCESS if runtime config list is cleared successfully.