(self, x)
| 67 | return nn.Sequential(*layers) |
| 68 | |
| 69 | def forward(self, x): |
| 70 | x = self.conv1(x) |
| 71 | x = self.bn1(x) |
| 72 | x = self.relu(x) |
| 73 | x = self.maxpool(x) |
| 74 | |
| 75 | x = self.layer1(x) |
| 76 | x = self.layer2(x) |
| 77 | x = self.layer3(x) |
| 78 | x = self.layer4(x) |
| 79 | |
| 80 | x = self.avgpool(x) |
| 81 | x = torch.flatten(x, 1) |
| 82 | x = self.fc(x) |
| 83 | |
| 84 | return x |
| 85 | |
| 86 | class EfficientNetBlock(nn.Module): |
| 87 | def __init__(self, in_channels, out_channels, kernel_size, stride, expand_ratio, se_ratio=0.25): |
nothing calls this directly
no outgoing calls
no test coverage detected