Init. Args: features (int): number of features
(self, features)
| 157 | """ |
| 158 | |
| 159 | def __init__(self, features): |
| 160 | """Init. |
| 161 | |
| 162 | Args: |
| 163 | features (int): number of features |
| 164 | """ |
| 165 | super().__init__() |
| 166 | |
| 167 | self.conv1 = nn.Conv2d( |
| 168 | features, features, kernel_size=3, stride=1, padding=1, bias=True |
| 169 | ) |
| 170 | |
| 171 | self.conv2 = nn.Conv2d( |
| 172 | features, features, kernel_size=3, stride=1, padding=1, bias=True |
| 173 | ) |
| 174 | |
| 175 | self.relu = nn.ReLU(inplace=True) |
| 176 | |
| 177 | def forward(self, x): |
| 178 | """Forward pass. |