MCPcopy Create free account
hub / github.com/SLDGroup/EMCAD / __init__

Method __init__

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 2

conv3x3Function · 0.85
__init__Method · 0.45

Tested by

no test coverage detected