Identity
- class torch.nn.utils.prune.Identity
Utility pruning method that does not prune any units but generates the pruning parametrization with a mask of ones.
- classmethod apply(module, name)
Add pruning on the fly and reparameterization of a tensor.
Adds the forward pre-hook that enables pruning on the fly and the reparameterization of a tensor in terms of the original tensor and the pruning mask.