(self, x, cond)
| 387 | nn.init.zeros_(self.body[-1].bias) |
| 388 | |
| 389 | def forward(self, x, cond): |
| 390 | cond = self.body(cond) |
| 391 | scale, shift = cond.chunk(2, dim=1) |
| 392 | |
| 393 | x = self.x_conv(x) |
| 394 | |
| 395 | x = x * (1 + scale) + shift |
| 396 | return x |
| 397 | |
| 398 | |
| 399 | class FreqCondInjection(nn.Module): |
nothing calls this directly
no outgoing calls
no test coverage detected