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

optimize(rvc): gather residuals

This commit is contained in:
源文雨
2024-06-08 00:44:46 +09:00
parent eb24434260
commit b91dcf2261
9 changed files with 210 additions and 200 deletions

View File

@@ -13,9 +13,9 @@ class MultiHeadAttention(nn.Module):
out_channels: int,
n_heads: int,
p_dropout: float = 0.0,
window_size: int | None = None,
window_size: Optional[int] = None,
heads_share: bool = True,
block_length: int | None = None,
block_length: Optional[int] = None,
proximal_bias: bool = False,
proximal_init: bool = False,
):
@@ -233,7 +233,7 @@ class FFN(nn.Module):
filter_channels: int,
kernel_size: int,
p_dropout: float = 0.0,
activation: str | None = None,
activation: Optional[str] = None,
causal: bool = False,
):
super(FFN, self).__init__()