neural_compressor.compression.pruner.patterns.ninm
N:M patterns.
Classes
Pruning Pattern. |
Module Contents
- class neural_compressor.compression.pruner.patterns.ninm.PytorchPatternNInM(config, modules)[source]
Pruning Pattern.
A Pattern class derived from Pattern. In this pattern, N out of every M continuous weights will be pruned. For more info of this pattern, please refer to : https://github.com/intel/neural-compressor/blob/master/docs/sparsity.md
- Parameters:
config – A config dict object that contains the pattern information.