(self, x)
| 49 | self.stride = stride |
| 50 | |
| 51 | def forward(self, x): |
| 52 | identity = x |
| 53 | |
| 54 | out = self.conv1(x) |
| 55 | out = self.bn1(out) |
| 56 | out = self.relu(out) |
| 57 | |
| 58 | out = self.conv2(out) |
| 59 | out = self.bn2(out) |
| 60 | |
| 61 | if self.downsample is not None: |
| 62 | identity = self.downsample(x) |
| 63 | |
| 64 | out += identity |
| 65 | out = self.relu(out) |
| 66 | |
| 67 | return out |
| 68 | |
| 69 | |
| 70 | class Bottleneck(nn.Module): |
nothing calls this directly
no outgoing calls
no test coverage detected