(self, x)
| 769 | padding=1) |
| 770 | |
| 771 | def forward(self, x): |
| 772 | # upsampling |
| 773 | h = x |
| 774 | for k, i_level in enumerate(range(self.num_resolutions)): |
| 775 | for i_block in range(self.num_res_blocks + 1): |
| 776 | h = self.res_blocks[i_level][i_block](h, None) |
| 777 | if i_level != self.num_resolutions - 1: |
| 778 | h = self.upsample_blocks[k](h) |
| 779 | h = self.norm_out(h) |
| 780 | h = nonlinearity(h) |
| 781 | h = self.conv_out(h) |
| 782 | return h |
| 783 |
nothing calls this directly
no test coverage detected