MCPcopy Create free account
hub / github.com/OpenGVLab/HumanBench / forward

Method forward

PATH/core/models/necks/simple_fpn.py:33–38  ·  view source on GitHub ↗
(self, x)

Source from the content-addressed store, hash-verified

31 self.ln.bias = self.bias
32
33 def forward(self, x):
34 u = x.mean(1, keepdim=True)
35 s = (x - u).pow(2).mean(1, keepdim=True)
36 x = (x - u) / torch.sqrt(s + self.eps)
37 x = self.weight[:, None, None] * x + self.bias[:, None, None]
38 return x
39
40
41class Conv2d(torch.nn.Conv2d):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected