torch.nn.utils.prune.remove
- torch.nn.utils.prune.remove(module, name)
Remove the pruning reparameterization from a module and the pruning method from the forward hook.
The pruned parameter named
nameremains permanently pruned, and the parameter namedname+'_orig'is removed from the parameter list. Similarly, the buffer namedname+'_mask'is removed from the buffers.