1
0
mirror of https://github.com/fumiama/Retrieval-based-Voice-Conversion-WebUI.git synced 2026-06-08 03:55:47 +08:00

chore(format): run black on dev (#11)

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
This commit is contained in:
github-actions[bot]
2024-06-08 00:46:57 +09:00
committed by GitHub
parent b91dcf2261
commit 26dc9ba98d
7 changed files with 11 additions and 13 deletions

View File

@@ -6,6 +6,7 @@ from torch.nn import functional as F
from .utils import activate_add_tanh_sigmoid_multiply
class LayerNorm(nn.Module):
def __init__(self, channels: int, eps: float = 1e-5):
super(LayerNorm, self).__init__()
@@ -20,6 +21,7 @@ class LayerNorm(nn.Module):
x = F.layer_norm(x, (self.channels,), self.gamma, self.beta, self.eps)
return x.transpose(1, -1)
class WN(torch.nn.Module):
def __init__(
self,