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

Method __init__

PATH/core/models/ops/hrt_helpers/basic_block.py:36–45  ·  view source on GitHub ↗
(self, inplanes, planes, stride=1, downsample=None)

Source from the content-addressed store, hash-verified

34 expansion = 1
35
36 def __init__(self, inplanes, planes, stride=1, downsample=None):
37 super(BasicBlock, self).__init__()
38 self.conv1 = conv3x3(inplanes, planes, stride)
39 self.bn1 = nn.BatchNorm2d(planes, momentum=BN_MOMENTUM)
40 self.relu = nn.ReLU(inplace=True)
41
42 self.conv2 = conv3x3(planes, planes)
43 self.bn2 = nn.BatchNorm2d(planes, momentum=BN_MOMENTUM)
44 self.downsample = downsample
45 self.stride = stride
46
47 def forward(self, x):
48 residual = x

Callers

nothing calls this directly

Calls 2

conv3x3Function · 0.85
BatchNorm2dMethod · 0.80

Tested by

no test coverage detected