torch.nn.utils.prune.ln_structured
- torch.nn.utils.prune.ln_structured(module, name, amount, n, dim, importance_scores=None)
Prune tensor by removing channels with the lowest L
n-norm along the specified dimension.Prunes tensor corresponding to parameter called
in by removing the specified of (currently unpruned) channels along the specified with the lowest L-norm. Modifies module in place (and also return the modified module) by: