Skip to main content

Module pruning

Module pruning 

Source
Expand description

§Pruning

Weight-pruning strategies for model compression.

ModuleStrategy
maskSparseMask — boolean weight mask primitives
magnitudeMagnitudePruner — unstructured L1/L2 pruning
structuredStructuredPruner — channel / filter / head pruning

Re-exports§

pub use magnitude::MagnitudeNorm;
pub use magnitude::MagnitudePruner;
pub use mask::SparseMask;
pub use structured::PruneGranularity;
pub use structured::StructuredPruner;

Modules§

magnitude
Magnitude-Based Unstructured Pruning
mask
Sparse Mask
structured
Structured Pruning