Pruning config

Pruning config specifies pruning amount for each prunable group either in relative (fraction of channels to prune) or absolute (number of channels to prune) values. Relative pruning config is represented by a list with float values, and absolute pruning config is represented by a list with integer values. It has the following type:

PruningConfig = Union[ Sequence[float], Sequence[int] ]

Pruning config is always related to certain ModelPruningInfo object because it’s length is equal to the number of prunable channel groups in the model. It can be used to obtain channel labels to prune, see get_least_important_labels_by_config() function. This is how most channel label selectors are deriving channel labels to prune.

User-defined configs can be verified with check_pruning_config().