latest (dev)
Copy
Latest development documentation · Updated 2026-10-08
tensorplay.ao.pruning.remove
- tensorplay.ao.pruning.remove(module: Module, name: str) Module[source]
Make the pruning of
module[name]permanent and drop the reparameterization.The pruned parameter
nameremains permanently pruned, the parametername + '_orig'is removed from the parameter list, and the buffername + '_mask'is removed from the buffers. The pruning hook is also detached from the module.Note
Pruning itself is NOT undone or reversed!
- Parameters:
module – module containing the pruned tensor.
name – parameter name within
modulewhose pruning is removed.
- Returns:
The modified module.
- Raises:
ValueError – if
nameis not currently pruned onmodule.
Help improve this page
Found an error, an unclear step, or a missing example?
Was this page helpful?

