(self, x, cond)
| 375 | nn.init.zeros_(self.body[-1].bias) |
| 376 | |
| 377 | def forward(self, x, cond): |
| 378 | cond = self.body(cond) |
| 379 | scale, shift = cond.chunk(2, dim=1) |
| 380 | |
| 381 | x = self.x_conv(x) |
| 382 | |
| 383 | x = x * (1 + scale) + shift |
| 384 | return x |
| 385 | |
| 386 | |
| 387 | class FreqCondInjection(nn.Module): |
nothing calls this directly
no outgoing calls
no test coverage detected