(self, x, z)
| 81 | self.output_nc = out_channels * 2 if self.skip_connect else out_channels |
| 82 | |
| 83 | def forward(self, x, z): |
| 84 | out = x.pop() if self.skip_connect else x |
| 85 | for i in range(self.encoder_layers - self.decoder_layers, self.encoder_layers)[::-1]: |
| 86 | model = getattr(self, 'decoder' + str(i)) |
| 87 | out = model(out, z) |
| 88 | out = torch.cat([out, x.pop()], 1) if self.skip_connect else out |
| 89 | return out |
| 90 | |
| 91 | |
| 92 | class ADAINEncoderBlock(nn.Module): |
nothing calls this directly
no outgoing calls
no test coverage detected