MCPcopy Create free account
hub / github.com/XLearning-SCU/2022-CVPR-DART / __init__

Method __init__

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

Source from the content-addressed store, hash-verified

25 expansion = 1
26
27 def __init__(self, inplanes, planes, stride=1, downsample=None, dilation=1):
28 super(BasicBlock, self).__init__()
29 self.conv1 = conv3x3(inplanes, planes, stride, dilation)
30 self.bn1 = nn.BatchNorm2d(planes)
31 self.relu = nn.ReLU(inplace=True)
32 self.conv2 = conv3x3(planes, planes)
33 self.bn2 = nn.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