MCPcopy Create free account
hub / github.com/FreeformRobotics/OTS / __init__

Method __init__

models/resnet.py:27–35  ·  view source on GitHub ↗
(self, inplanes, planes, stride=1, downsample=None)

Source from the content-addressed store, hash-verified

25 expansion = 1
26
27 def __init__(self, inplanes, planes, stride=1, downsample=None):
28 super(BasicBlock, self).__init__()
29 self.conv1 = conv3x3(inplanes, planes, stride)
30 self.bn1 = BatchNorm2d(planes)
31 self.relu = nn.ReLU(inplace=True)
32 self.conv2 = conv3x3(planes, planes)
33 self.bn2 = BatchNorm2d(planes)
34 self.downsample = downsample
35 self.stride = stride
36
37 def forward(self, x):
38 residual = x

Callers

nothing calls this directly

Calls 2

conv3x3Function · 0.85
__init__Method · 0.45

Tested by

no test coverage detected