(self, x)
| 40 | return x |
| 41 | |
| 42 | def encode(self, x): |
| 43 | x = self.encoder(x) |
| 44 | x = F.adaptive_avg_pool2d(x, 1) |
| 45 | x = x.squeeze(-1).squeeze(-1) |
| 46 | return x |
| 47 | |
| 48 | def forward(self, input): |
| 49 | if self.mode != 'encoder': |
no outgoing calls
no test coverage detected