Skip to content

get_dl_pruning_paramGetDlPruningParamGetDlPruningParamget_dl_pruning_paramT_get_dl_pruning_param🔗

Short description🔗

get_dl_pruning_paramGetDlPruningParamGetDlPruningParamget_dl_pruning_paramT_get_dl_pruning_param — Get information from a pruning data handle.

Signature🔗

get_dl_pruning_param( dl_pruning DLPruningHandle, attribute.name GenParamName, out attribute.name GenParamValue )void GetDlPruningParam( const HTuple& DLPruningHandle, const HTuple& GenParamName, HTuple* GenParamValue )static void HOperatorSet.GetDlPruningParam( HTuple DLPruningHandle, HTuple genParamName, out HTuple genParamValue )def get_dl_pruning_param( dlpruning_handle: HHandle, gen_param_name: str ) -> Sequence[Union[str, float, int]]

def get_dl_pruning_param_s( dlpruning_handle: HHandle, gen_param_name: str ) -> Union[str, float, int]Herror T_get_dl_pruning_param( const Htuple DLPruningHandle, const Htuple GenParamName, Htuple* GenParamValue )

HTuple HDlPrune::GetDlPruningParam( const HString& GenParamName ) const

HTuple HDlPrune::GetDlPruningParam( const char* GenParamName ) const

HTuple HDlPrune::GetDlPruningParam( const wchar_t* GenParamName ) const (Windows only)

HTuple HDlPrune.GetDlPruningParam( string genParamName )

Description🔗

get_dl_pruning_paramGetDlPruningParam returns the parameter and pruning values GenParamValuegenParamValuegen_param_value of GenParamNamegenParamNamegen_param_name from the pruning data handle DLPruningHandleDLPruningHandledlpruning_handle.

The values of following parameters GenParamNamegenParamNamegen_param_name can be retrieved:

  • 'mode'"mode": Specifies the pruning method See create_dl_pruningCreateDlPruning for further information.

    Default: 'oracle'"oracle"

  • 'percentage'"percentage": Determines how much will be removed in percents. E.g., in case of 'mode'"mode"='oracle'"oracle" it specifies the relative amount of possibly removable kernels to be removed, whereby only removable kernels are considered.

    Default: 1010

Additionally, for 'mode'"mode"='oracle'"oracle", the following pruning values can be retrieved using GenParamNamegenParamNamegen_param_name:

  • 'prunable_conv_num'"prunable_conv_num": Number of prunable convolutional layers in the network. Whether a layer is prunable depends on the specifications of the layer itself as well as the network architecture.

  • 'prunable_conv_layer_name'"prunable_conv_layer_name": Names of the prunable convolutional layers in the network.

  • 'prunable_kernel_num'"prunable_kernel_num": Number of prunable convolution kernels in the network. It considers that a pruned convolution has to retain at least 1 convolution kernel.

  • 'pruned_kernel_num'"pruned_kernel_num": Number of pruned convolution kernels in the network after a call of gen_dl_pruned_modelGenDlPrunedModel.

  • 'pruned_percentage'"pruned_percentage": Actual percentage of pruned convolution kernels in the network after a call of gen_dl_pruned_modelGenDlPrunedModel: the ratio 'pruned_kernel_num'"pruned_kernel_num" versus 'prunable_kernel_num'"prunable_kernel_num".

The following table gives an overview, which parameters and values can be set using set_dl_pruning_paramSetDlPruningParam and which ones can be retrieved using get_dl_pruning_paramGetDlPruningParam.

Parameters set get
'mode'"mode" x x
'percentage'"percentage" x x
'prunable_conv_num'"prunable_conv_num" x
'prunable_conv_layer_name'"prunable_conv_layer_name" x
'prunable_kernel_num'"prunable_kernel_num" x
'pruned_kernel_num'"pruned_kernel_num" x
'pruned_percentage'"pruned_percentage" x

Execution information🔗

Execution information
  • Multithreading type: reentrant (runs in parallel with non-exclusive operators).

  • Multithreading scope: global (may be called from any thread).

  • Processed without parallelization.

Parameters🔗

DLPruningHandleDLPruningHandledlpruning_handle (input_control) dl_pruning → (handle)HTuple (HHandle)HDlPrune, HTuple (IntPtr)HHandleHtuple (handle)

Pruning data handle.

GenParamNamegenParamNamegen_param_name (input_control) attribute.name → (string)HTuple (HString)HTuple (string)strHtuple (char*)

Name of the generic parameter.

Default: 'percentage'"percentage"
List of values: 'mode', 'percentage', 'prunable_conv_layer_name', 'prunable_conv_num', 'prunable_kernel_num', 'pruned_kernel_num', 'pruned_percentage'"mode", "percentage", "prunable_conv_layer_name", "prunable_conv_num", "prunable_kernel_num", "pruned_kernel_num", "pruned_percentage"

GenParamValuegenParamValuegen_param_value (output_control) attribute.name(-array) → (integer / string / real)HTuple (Hlong / HString / double)HTuple (int / long / string / double)Sequence[Union[str, float, int]]Htuple (Hlong / char* / double)

Value of the generic parameter.

Combinations with other operators🔗

Combinations

Possible predecessors

create_dl_pruningCreateDlPruning, set_dl_pruning_paramSetDlPruningParam

See also

set_dl_pruning_paramSetDlPruningParam

Module🔗

Deep Learning Professional