(self, x)
| 64 | self.activation = nn.ReLU(inplace=True) |
| 65 | |
| 66 | def forward(self, x): |
| 67 | residual = self.shortcut(x) |
| 68 | x = self.conv1(x) |
| 69 | x = self.conv2(x) |
| 70 | x = self.conv3(x) |
| 71 | x = x + residual |
| 72 | x = self.activation(x) |
| 73 | return x |
| 74 | |
| 75 | class InvertedResidualBlock(nn.Module): |
| 76 | def __init__(self, in_channels, out_channels, stride=1, expand_ratio=6): |
nothing calls this directly
no outgoing calls
no test coverage detected