(self, x, x_mask=None)
| 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: |
nothing calls this directly
no outgoing calls
no test coverage detected