(self, x)
| 68 | self.stride = stride |
| 69 | |
| 70 | def forward(self, x): |
| 71 | identity = x |
| 72 | |
| 73 | out = self.conv1(x) |
| 74 | out = self.bn1(out) |
| 75 | out = self.relu(out) |
| 76 | |
| 77 | out = self.conv2(out) |
| 78 | out = self.bn2(out) |
| 79 | |
| 80 | if self.downsample is not None: |
| 81 | identity = self.downsample(x) |
| 82 | |
| 83 | out = out + identity |
| 84 | out = self.relu(out) |
| 85 | |
| 86 | return out |
| 87 | |
| 88 | |
| 89 | class Bottleneck(nn.Module): |
nothing calls this directly
no outgoing calls
no test coverage detected