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