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

Method forward

PATH/core/models/ops/hrt_helpers/basic_block.py:47–63  ·  view source on GitHub ↗
(self, x)

Source from the content-addressed store, hash-verified

45 self.stride = stride
46
47 def forward(self, x):
48 residual = x
49
50 out = self.conv1(x)
51 out = self.bn1(out)
52 out = self.relu(out)
53
54 out = self.conv2(out)
55 out = self.bn2(out)
56
57 if self.downsample is not None:
58 residual = self.downsample(x)
59
60 out += residual
61 out = self.relu(out)
62
63 return out

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected