(self, x)
| 38 | self.activation = nn.ReLU(inplace=True) |
| 39 | |
| 40 | def forward(self, x): |
| 41 | residual = x |
| 42 | x = self.conv1(x) |
| 43 | x = self.conv2(x) |
| 44 | x = x + residual |
| 45 | x = self.activation(x) |
| 46 | return x |
| 47 | |
| 48 | class BottleneckBlock(nn.Module): |
| 49 | def __init__(self, in_channels, out_channels, stride=1, expansion=4): |
nothing calls this directly
no outgoing calls
no test coverage detected