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

Method forward

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

Source from the content-addressed store, hash-verified

296 self.convs2.apply(init_weights)
297
298 def forward(self, x, x_mask=None):
299 for c1, c2 in zip(self.convs1, self.convs2):
300 xt = F.leaky_relu(x, LRELU_SLOPE)
301 if x_mask is not None:
302 xt = xt * x_mask
303 xt = c1(xt)
304 xt = F.leaky_relu(xt, LRELU_SLOPE)
305 if x_mask is not None:
306 xt = xt * x_mask
307 xt = c2(xt)
308 x = xt + x
309 if x_mask is not None:
310 x = x * x_mask
311 return x
312
313 def remove_weight_norm(self):
314 for l in self.convs1:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected