(self, x: torch.Tensor)
| 40 | ])) |
| 41 | |
| 42 | def forward(self, x: torch.Tensor): |
| 43 | identity = x |
| 44 | |
| 45 | out = self.relu1(self.bn1(self.conv1(x))) |
| 46 | out = self.relu2(self.bn2(self.conv2(out))) |
| 47 | out = self.avgpool(out) |
| 48 | out = self.bn3(self.conv3(out)) |
| 49 | |
| 50 | if self.downsample is not None: |
| 51 | identity = self.downsample(x) |
| 52 | |
| 53 | out += identity |
| 54 | out = self.relu3(out) |
| 55 | return out |
| 56 | |
| 57 | |
| 58 | class AttentionPool2d(nn.Module): |
nothing calls this directly
no outgoing calls
no test coverage detected