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

Method forward

sovits/module/modules.py:349–358  ·  view source on GitHub ↗
(self, x, x_mask=None)

Source from the content-addressed store, hash-verified

347 self.convs.apply(init_weights)
348
349 def forward(self, x, x_mask=None):
350 for c in self.convs:
351 xt = F.leaky_relu(x, LRELU_SLOPE)
352 if x_mask is not None:
353 xt = xt * x_mask
354 xt = c(xt)
355 x = xt + x
356 if x_mask is not None:
357 x = x * x_mask
358 return x
359
360 def remove_weight_norm(self):
361 for l in self.convs:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected