Forward pass. Returns: tensor: output
(self, *xs)
| 298 | self.resConfUnit2 = ResidualConvUnit(features) |
| 299 | |
| 300 | def forward(self, *xs): |
| 301 | """Forward pass. |
| 302 | |
| 303 | Returns: |
| 304 | tensor: output |
| 305 | """ |
| 306 | output = xs[0] |
| 307 | |
| 308 | if len(xs) == 2: |
| 309 | output += self.resConfUnit1(xs[1]) |
| 310 | |
| 311 | output = self.resConfUnit2(output) |
| 312 | |
| 313 | output = nn.functional.interpolate( |
| 314 | output, scale_factor=2, mode="bilinear", align_corners=True |
| 315 | ) |
| 316 | |
| 317 | return output |
| 318 | |
| 319 | |
| 320 |
nothing calls this directly
no outgoing calls
no test coverage detected