src/transformers/models/speecht5/modeling_speecht5.py/SpeechT5HifiGan/remove_weight_norm
class SpeechT5HifiGan:    def remove_weight_norm(self):
        nn.utils.remove_weight_norm(self.conv_pre)
        for layer in self.upsampler:
            nn.utils.remove_weight_norm(layer)
        for layer in self.resblocks:
            layer.remove_weight_norm()
        nn.utils.remove_weight_norm(self.conv_post)