torch.nn.utils.
remove_weight_norm
Removes the weight normalization reparameterization from a module.
module (Module) – containing module
name (str, optional) – name of weight parameter
Example
>>> m = weight_norm(nn.Linear(20, 40)) >>> remove_weight_norm(m)
此页内容是否对您有帮助
感谢反馈!