MCPcopy Create free account
hub / github.com/csxmli2016/MARCONetPlusPlus / __init__

Method __init__

networks/w_encoder_arch.py:9–17  ·  view source on GitHub ↗
(self, inplanes, planes, stride=1, downsample=None)

Source from the content-addressed store, hash-verified

7
8class BasicBlock(nn.Module):
9 def __init__(self, inplanes, planes, stride=1, downsample=None):
10 super(BasicBlock, self).__init__()
11 self.conv1 = conv1x1(inplanes, planes)
12 self.gn1 = GroupNorm(planes)
13 self.relu = nn.LeakyReLU(0.2, inplace=True)
14 self.conv2 = conv3x3(planes, planes, stride)
15 self.gn2 = GroupNorm(planes)
16 self.downsample = downsample
17 self.stride = stride
18
19 def forward(self, x):
20 residual = x

Callers

nothing calls this directly

Calls 4

conv1x1Function · 0.70
GroupNormFunction · 0.70
conv3x3Function · 0.70
__init__Method · 0.45

Tested by

no test coverage detected