(self, x)
| 216 | self.stride = stride |
| 217 | |
| 218 | def forward(self, x): |
| 219 | residual = x |
| 220 | out = self.conv1(x) |
| 221 | out = self.bn1(out) |
| 222 | out = self.relu(out) |
| 223 | |
| 224 | out = self.conv2(out) |
| 225 | out = self.bn2(out) |
| 226 | out = self.se(out) |
| 227 | |
| 228 | if self.downsample is not None: |
| 229 | residual = self.downsample(x) |
| 230 | |
| 231 | out += residual |
| 232 | out = self.relu(out) |
| 233 | |
| 234 | return out |
| 235 | |
| 236 | |
| 237 | class SEBottleneck(nn.Module): |
nothing calls this directly
no outgoing calls
no test coverage detected