(self, inchannels, outchannels)
| 332 | |
| 333 | class FeatureFusion(nn.Module): |
| 334 | def __init__(self, inchannels, outchannels): |
| 335 | super(FeatureFusion, self).__init__() |
| 336 | self.conv = ResidualConv(inchannels=inchannels) |
| 337 | # NN.BatchNorm2d |
| 338 | self.up = nn.Sequential(ResidualConv(inchannels=inchannels), |
| 339 | nn.ConvTranspose2d(in_channels=inchannels, out_channels=outchannels, kernel_size=3, |
| 340 | stride=2, padding=1, output_padding=1), |
| 341 | nn.BatchNorm2d(num_features=outchannels), |
| 342 | nn.ReLU(inplace=True)) |
| 343 | |
| 344 | def forward(self, lowfeat, highfeat): |
| 345 | return self.up(highfeat + self.conv(lowfeat)) |
nothing calls this directly
no test coverage detected