(self, x)
| 45 | self.stride = stride |
| 46 | |
| 47 | def forward(self, x): |
| 48 | residual = x |
| 49 | |
| 50 | out = self.conv1(x) |
| 51 | out = self.bn1(out) |
| 52 | out = self.relu(out) |
| 53 | |
| 54 | out = self.conv2(out) |
| 55 | out = self.bn2(out) |
| 56 | |
| 57 | if self.downsample is not None: |
| 58 | residual = self.downsample(x) |
| 59 | |
| 60 | out += residual |
| 61 | out = self.relu(out) |
| 62 | |
| 63 | return out |
nothing calls this directly
no outgoing calls
no test coverage detected