(self, x)
| 109 | self.dropout = nn.Dropout2d(drop_rate) if drop_rate > 0 else nn.Identity() |
| 110 | |
| 111 | def forward(self, x): |
| 112 | out = self.conv1(self.relu1(self.bn1(x))) |
| 113 | out = self.conv2(self.relu2(self.bn2(out))) |
| 114 | out = self.dropout(out) |
| 115 | return torch.cat([x, out], 1) |
| 116 | |
| 117 | class DenseBlock(nn.Module): |
| 118 | def __init__(self, num_layers, in_channels, growth_rate, drop_rate=0.0): |
nothing calls this directly
no outgoing calls
no test coverage detected