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

Method __init__

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

Source from the content-addressed store, hash-verified

65 expansion = 4
66
67 def __init__(self, inplanes, planes, stride=1, downsample=None):
68 super(Bottleneck, self).__init__()
69 self.conv1 = nn.Conv2d(inplanes, planes, kernel_size=1, bias=False)
70 self.bn1 = nn.BatchNorm2d(planes)
71 self.conv2 = nn.Conv2d(planes, planes, kernel_size=3, stride=stride,
72 padding=1, bias=False)
73 self.bn2 = nn.BatchNorm2d(planes)
74 self.conv3 = nn.Conv2d(planes, planes * Bottleneck.expansion, kernel_size=1, bias=False)
75 self.bn3 = nn.BatchNorm2d(planes * Bottleneck.expansion)
76 self.relu = nn.ReLU(inplace=True)
77 self.downsample = downsample
78 self.stride = stride
79
80 def forward(self, x):
81 residual = x

Callers

nothing calls this directly

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected