torch.nn.utils.prune.custom_from_mask
- torch.nn.utils.prune.custom_from_mask(module, name, mask)
Prune tensor corresponding to parameter called
nameinmoduleby applying the pre-computed mask inmask.Modifies module in place (and also return the modified module) by: