MCPcopy Create free account
hub / github.com/DingXiaoH/RepVGG / forward

Method forward

se_block.py:15–22  ·  view source on GitHub ↗
(self, inputs)

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected