(self, x, y=None)
| 735 | self.n_blocks += 1 |
| 736 | |
| 737 | def forward(self, x, y=None): |
| 738 | if y is not None: |
| 739 | output = self.resnet_block(cat_feature(x, y)) |
| 740 | for n in range(self.n_blocks): |
| 741 | block = getattr(self, 'block_{:d}'.format(n)) |
| 742 | if n > 0: |
| 743 | output = block(cat_feature(output, y)) |
| 744 | else: |
| 745 | output = block(output) |
| 746 | return output |
| 747 | |
| 748 | |
| 749 | class Decoder(nn.Module): |
nothing calls this directly
no test coverage detected