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

Method forward

PATH/core/models/ops/normalization_helpers.py:16–21  ·  view source on GitHub ↗
(self, x)

Source from the content-addressed store, hash-verified

14 self.BN = BN(half2)
15
16 def forward(self, x):
17 split = torch.split(x, self.half, 1)
18 out1 = self.IN(split[0].contiguous())
19 out2 = self.BN(split[1].contiguous())
20 out = torch.cat((out1, out2), 1)
21 return out
22
23
24def get_normalization(num_features, bn_type=None, **kwargs):

Callers

nothing calls this directly

Calls 2

BNMethod · 0.80
catMethod · 0.45

Tested by

no test coverage detected