(self, x)
| 226 | self.convs.append(EqualConv2d(in_channel, self.w_dim, 4, padding=0, bias=False)) |
| 227 | |
| 228 | def forward(self, x): |
| 229 | |
| 230 | res = [] |
| 231 | h = x |
| 232 | for conv in self.convs: |
| 233 | h = conv(h) |
| 234 | res.append(h) |
| 235 | |
| 236 | return res[-1].squeeze(-1).squeeze(-1), res[::-1][2:] |
| 237 | |
| 238 | |
| 239 | class Encoder(nn.Module): |
nothing calls this directly
no outgoing calls
no test coverage detected