torch.nn.utils.remove_spectral_norm¶ torch.nn.utils.remove_spectral_norm(module, name='weight')[源代码]¶ 从模块中移除光谱归一化重参数化。 Parameters 模块 (模块) – 包含的模块 名称 (str, 可选) – 权重参数的名称 Return type T_模块 示例 >>> m = spectral_norm(nn.Linear(40, 10)) >>> remove_spectral_norm(m)