Method
conv_block
(self, c_in, c_out, dropout=0.1, kernel_size=3, stride=1, **kwargs)
Source from the content-addressed store, hash-verified
| 34 | # self.prefc1 = nn.Linear(self.bigN, ) |
| 35 | |
| 36 | def conv_block(self, c_in, c_out, dropout=0.1, kernel_size=3, stride=1, **kwargs): |
| 37 | seq_block = nn.Sequential( |
| 38 | nn.Conv2d(in_channels=c_in, out_channels=c_out, kernel_size=kernel_size, **kwargs), |
| 39 | nn.BatchNorm2d(num_features=c_out), |
| 40 | nn.ReLU(), |
| 41 | # nn.Dropout2d(p=dropout) |
| 42 | ) |
| 43 | return seq_block |
| 44 | |
| 45 | def forward(self, x): |
| 46 | x = self.conv1(x) |
Tested by
no test coverage detected