(self, x)
| 858 | padding=1) |
| 859 | |
| 860 | def forward(self, x): |
| 861 | for i, layer in enumerate(self.model): |
| 862 | if i in [1,2,3]: |
| 863 | x = layer(x, None) |
| 864 | else: |
| 865 | x = layer(x) |
| 866 | |
| 867 | h = self.norm_out(x) |
| 868 | h = nonlinearity(h) |
| 869 | x = self.conv_out(h) |
| 870 | return x |
| 871 | |
| 872 | |
| 873 | class UpsampleDecoder(nn.Module): |
nothing calls this directly
no test coverage detected