(self, x)
| 24 | self.dropout = nn.Dropout2d(drop_rate) if drop_rate > 0 else nn.Identity() |
| 25 | |
| 26 | def forward(self, x): |
| 27 | x = self.conv(x) |
| 28 | x = self.bn(x) |
| 29 | x = self.activation(x) |
| 30 | x = self.dropout(x) |
| 31 | return x |
| 32 | |
| 33 | class ResidualBlock(nn.Module): |
| 34 | def __init__(self, channels, kernel_size=3, drop_rate=0.0): |
nothing calls this directly
no outgoing calls
no test coverage detected