(self, x)
| 66 | padding=0) |
| 67 | |
| 68 | def forward(self, x): |
| 69 | if self.with_conv: |
| 70 | pad = (0,1,0,1) |
| 71 | x = torch.nn.functional.pad(x, pad, mode="constant", value=0) |
| 72 | x = self.conv(x) |
| 73 | else: |
| 74 | x = torch.nn.functional.avg_pool2d(x, kernel_size=2, stride=2) |
| 75 | return x |
| 76 | |
| 77 | |
| 78 | class ResnetBlock(nn.Module): |
nothing calls this directly
no outgoing calls
no test coverage detected