yamle.pruning.unstructured.magnitude module#
- class yamle.pruning.unstructured.magnitude.UnstructuredMagnitudePruner(percentage, *args, **kwargs)[source]#
Bases:
BasePrunerThis is the base class for unstructured magnitude-based pruning.
It will prune the weights with the lowest absolute magnitude. The threshold is determined by the pruning percentage. The pruning percentage is the percentageage of weights to prune.
- Parameters:
pruning_percentage¶ (float) – The percentageage of weights to prune.