(self, x)
| 76 | nn.init.zeros_(self.conv2.bn.weight) |
| 77 | |
| 78 | def forward(self, x): |
| 79 | shortcut = x |
| 80 | x = self.conv1(x) |
| 81 | x = self.conv2(x) |
| 82 | if self.se is not None: |
| 83 | x = self.se(x) |
| 84 | if self.drop_path is not None: |
| 85 | x = self.drop_path(x) |
| 86 | if self.downsample is not None: |
| 87 | shortcut = self.downsample(shortcut) |
| 88 | x += shortcut |
| 89 | x = self.act(x) |
| 90 | return x |
| 91 | |
| 92 | |
| 93 | class SelectiveKernelBottleneck(nn.Module): |
nothing calls this directly
no test coverage detected