torch.nn.utils.prune.l1_unstructured
- torch.nn.utils.prune.l1_unstructured(module, name, amount, importance_scores=None)
Prune tensor by removing units with the lowest L1-norm.
Prunes tensor corresponding to parameter called
nameinmoduleby removing the specified amount of (currently unpruned) units with the lowest L1-norm. Modifies module in place (and also return the modified module) by: