Forward pass. Args: x (tensor): input Returns: tensor: output
(self, x)
| 175 | self.relu = nn.ReLU(inplace=True) |
| 176 | |
| 177 | def forward(self, x): |
| 178 | """Forward pass. |
| 179 | |
| 180 | Args: |
| 181 | x (tensor): input |
| 182 | |
| 183 | Returns: |
| 184 | tensor: output |
| 185 | """ |
| 186 | out = self.relu(x) |
| 187 | out = self.conv1(out) |
| 188 | out = self.relu(out) |
| 189 | out = self.conv2(out) |
| 190 | |
| 191 | return out + x |
| 192 | |
| 193 | |
| 194 | class FeatureFusionBlock(nn.Module): |
nothing calls this directly
no outgoing calls
no test coverage detected