Forward pass. Args: x (tensor): input Returns: tensor: output
(self, x)
| 266 | self.relu = nn.ReLU(inplace=True) |
| 267 | |
| 268 | def forward(self, x): |
| 269 | """Forward pass. |
| 270 | |
| 271 | Args: |
| 272 | x (tensor): input |
| 273 | |
| 274 | Returns: |
| 275 | tensor: output |
| 276 | """ |
| 277 | out = self.relu(x) |
| 278 | out = self.conv1(out) |
| 279 | out = self.relu(out) |
| 280 | out = self.conv2(out) |
| 281 | |
| 282 | return out + x |
| 283 | |
| 284 | |
| 285 | class FeatureFusionBlock(nn.Module): |
nothing calls this directly
no outgoing calls
no test coverage detected