mossformer2-se-48k / utils.py
MigoXV's picture
Publish MossFormer2 48 kHz speech enhancement model
8671d68 verified
Raw
History Blame Contribute Delete
185 Bytes
import torch.nn as nn
def select_norm(norm, dim, shape):
"""Just a wrapper to select the normalization type."""
if norm == "ln":
return nn.GroupNorm(1, dim, eps=1e-8)