neural_compressor.compression.pruner.pruners.basic
Basic pruner.
Classes
Pruning Pruner. |
|
Pruning Pruner. |
Module Contents
- class neural_compressor.compression.pruner.pruners.basic.PytorchBasicPruner(config, modules)[source]
Pruning Pruner.
The class which executes pruning process. 1. Defines pruning functions called at step begin/end, epoch begin/end. 2. Defines the pruning criterion.
- Parameters:
modules – A dict {“module_name”: Tensor} that stores the pruning modules’ weights.
config – A config dict object that contains the pruner information.
- class neural_compressor.compression.pruner.pruners.basic.KerasBasicPruner[source]
Pruning Pruner.
The class which executes pruning process. 1. Defines pruning functions called at step begin/end, epoch begin/end. 2. Defines the pruning criterion.
- Parameters:
modules – A dict {“module_name”: Tensor} that stores the pruning modules’ weights.
config – A config dict object that contains the pruner information.