torch.nn.utils.remove_spectral_norm
- torch.nn.utils.remove_spectral_norm(module, name='weight')[source]
Remove the spectral normalization reparameterization from a module.
- Parameters
- Return type
T_module
Example
>>> m = spectral_norm(nn.Linear(40, 10)) >>> remove_spectral_norm(m)