(self, x)
| 17 | self.stride = stride |
| 18 | |
| 19 | def forward(self, x): |
| 20 | residual = x |
| 21 | |
| 22 | out = self.conv1(x) |
| 23 | out = self.relu(out) |
| 24 | out = self.bn1(out) |
| 25 | |
| 26 | out = self.conv2(out) |
| 27 | out = self.bn2(out) |
| 28 | out = self.se(out) |
| 29 | |
| 30 | if self.downsample is not None: |
| 31 | residual = self.downsample(x) |
| 32 | |
| 33 | out += residual |
| 34 | out = self.relu(out) |
| 35 | return out |
| 36 | |
| 37 | class SELayer(nn.Module): |
| 38 | def __init__(self, channel, reduction=8): |
nothing calls this directly
no outgoing calls
no test coverage detected