MCPcopy Create free account
hub / github.com/MYZY-AI/Muyan-TTS / forward

Method forward

sovits/models.py:404–412  ·  view source on GitHub ↗
(self, x, x_lengths, g=None)

Source from the content-addressed store, hash-verified

402 self.norm = modules.LayerNorm(out_channels)
403
404 def forward(self, x, x_lengths, g=None):
405 x_mask = torch.unsqueeze(commons.sequence_mask(x_lengths, x.size(2)), 1).to(
406 x.dtype
407 )
408 x = self.pre(x) * x_mask
409 x = self.enc(x, x_mask, g=g)
410 out = self.proj(x) * x_mask
411 out = self.norm(out)
412 return out
413
414
415class Generator(torch.nn.Module):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected