Skip to content

Commit

Permalink
removed unnecessary multiplication
Browse files Browse the repository at this point in the history
  • Loading branch information
AznamirWoW committed Dec 28, 2024
1 parent e294f0a commit b513910
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rvc/lib/algorithm/encoders.py
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ def forward(
x = self.lrelu(x)
x = torch.transpose(x, 1, -1) # [b, h, t]
x_mask = torch.unsqueeze(sequence_mask(lengths, x.size(2)), 1).to(x.dtype)
x = self.encoder(x * x_mask, x_mask)
x = self.encoder(x, x_mask)
stats = self.proj(x) * x_mask

m, logs = torch.split(stats, self.out_channels, dim=1)
Expand Down

0 comments on commit b513910

Please sign in to comment.