(self, x)
| 94 | self.conv = nn.Conv2d(in_channels, in_channels, kernel_size=3, stride=1, padding=1) |
| 95 | |
| 96 | def forward(self, x): |
| 97 | x = nn.functional.interpolate(x, scale_factor=2.0, mode="nearest") |
| 98 | if self.with_conv: |
| 99 | x = self.conv(x) |
| 100 | return x |
| 101 | |
| 102 | |
| 103 | class Downsample(nn.Module): |
nothing calls this directly
no outgoing calls
no test coverage detected