(self, x)
| 723 | padding=1) |
| 724 | |
| 725 | def forward(self, x): |
| 726 | # upsampling |
| 727 | h = x |
| 728 | for k, i_level in enumerate(range(self.num_resolutions)): |
| 729 | for i_block in range(self.num_res_blocks + 1): |
| 730 | h = self.res_blocks[i_level][i_block](h, None) |
| 731 | if i_level != self.num_resolutions - 1: |
| 732 | h = self.upsample_blocks[k](h) |
| 733 | h = self.norm_out(h) |
| 734 | h = nonlinearity(h) |
| 735 | h = self.conv_out(h) |
| 736 | return h |
| 737 | |
| 738 | |
| 739 | class LatentRescaler(nn.Module): |
nothing calls this directly
no test coverage detected