L1Unstructured
- class torch.nn.utils.prune.L1Unstructured(amount)
Prune (currently unpruned) units in a tensor by zeroing out the ones with the lowest L1-norm.
- Parameters:
amount (int or ) – quantity of parameters to prune. If , should be between 0.0 and 1.0 and represent the fraction of parameters to prune. If , it represents the absolute number of parameters to prune.