(self, x)
| 1309 | padding=1) |
| 1310 | |
| 1311 | def forward(self, x): |
| 1312 | # upsampling |
| 1313 | h = x |
| 1314 | for k, i_level in enumerate(range(self.num_resolutions)): |
| 1315 | for i_block in range(self.num_res_blocks + 1): |
| 1316 | h = self.res_blocks[i_level][i_block](h, None) |
| 1317 | if i_level != self.num_resolutions - 1: |
| 1318 | h = self.upsample_blocks[k](h) |
| 1319 | h = self.norm_out(h) |
| 1320 | h = nonlinearity(h) |
| 1321 | h = self.conv_out(h) |
| 1322 | return h |
nothing calls this directly
no test coverage detected