torch.nn.utils.prune.random_structured
- torch.nn.utils.prune.random_structured(module, name, amount, dim)
Prune tensor by removing random channels along the specified dimension.
Prunes tensor corresponding to parameter called
nameinmoduleby removing the specifiedof (currently unpruned) channels along the specified selected at random. Modifies module in place (and also return the modified module) by: