(self, inputs)
| 13 | self.input_channels = input_channels |
| 14 | |
| 15 | def forward(self, inputs): |
| 16 | x = F.avg_pool2d(inputs, kernel_size=inputs.size(3)) |
| 17 | x = self.down(x) |
| 18 | x = F.relu(x) |
| 19 | x = self.up(x) |
| 20 | x = torch.sigmoid(x) |
| 21 | x = x.view(-1, self.input_channels, 1, 1) |
| 22 | return inputs * x |
nothing calls this directly
no outgoing calls
no test coverage detected