(self, x)
| 180 | self.global_pool, self.fc = create_classifier(self.num_features, self.num_classes, pool_type=global_pool) |
| 181 | |
| 182 | def forward_features(self, x): |
| 183 | x = self.conv1(x) |
| 184 | x = self.bn1(x) |
| 185 | x = self.act1(x) |
| 186 | |
| 187 | x = self.conv2(x) |
| 188 | x = self.bn2(x) |
| 189 | x = self.act2(x) |
| 190 | |
| 191 | x = self.block1(x) |
| 192 | x = self.block2(x) |
| 193 | x = self.block3(x) |
| 194 | x = self.block4(x) |
| 195 | x = self.block5(x) |
| 196 | x = self.block6(x) |
| 197 | x = self.block7(x) |
| 198 | x = self.block8(x) |
| 199 | x = self.block9(x) |
| 200 | x = self.block10(x) |
| 201 | x = self.block11(x) |
| 202 | x = self.block12(x) |
| 203 | |
| 204 | x = self.conv3(x) |
| 205 | x = self.bn3(x) |
| 206 | x = self.act3(x) |
| 207 | |
| 208 | x = self.conv4(x) |
| 209 | x = self.bn4(x) |
| 210 | x = self.act4(x) |
| 211 | return x |
| 212 | |
| 213 | def forward(self, x): |
| 214 | x = self.forward_features(x) |