(self, x)
| 59 | self.stride = stride |
| 60 | |
| 61 | def forward(self, x): |
| 62 | identity = x |
| 63 | |
| 64 | out = self.conv1(x) |
| 65 | out = self.bn1(out) |
| 66 | out = self.relu(out) |
| 67 | |
| 68 | out = self.conv2(out) |
| 69 | out = self.bn2(out) |
| 70 | |
| 71 | if self.downsample is not None: |
| 72 | identity = self.downsample(x) |
| 73 | |
| 74 | out += identity |
| 75 | out = self.relu(out) |
| 76 | |
| 77 | return out |
| 78 | |
| 79 | |
| 80 | class Bottleneck(nn.Module): |
nothing calls this directly
no outgoing calls
no test coverage detected