torch.nn.utils.prune.random_unstructured
- torch.nn.utils.prune.random_unstructured(module, name, amount)
Prune tensor by removing random (currently unpruned) units.
Prunes tensor corresponding to parameter called
nameinmoduleby removing the specifiedamountof (currently unpruned) units selected at random. Modifies module in place (and also return the modified module) by: