MCPcopy Create free account
hub / github.com/10Ring/LAA-Net / __init__

Method __init__

models/networks/common.py:32–42  ·  view source on GitHub ↗
(self, inplanes, outplanes, stride=1, pool_size=3)

Source from the content-addressed store, hash-verified

30
31class InceptionBlock(nn.Module):
32 def __init__(self, inplanes, outplanes, stride=1, pool_size=3):
33 self.inplanes = inplanes
34 self.outplanes = outplanes
35 self.stride = stride
36 self.pool_size = pool_size
37 super(InceptionBlock, self).__init__()
38
39 self.pw_block = point_wise_block(self.inplanes, self.outplanes//4)
40 self.mp_layer = nn.MaxPool2d(kernel_size=self.pool_size, stride=stride, padding=1)
41 self.conv3_block = conv_block(self.outplanes//4, self.outplanes//4, kernel_size=3, stride=1, padding=1)
42 self.conv5_block = conv_block(self.outplanes//4, self.outplanes//4, kernel_size=5, stride=1, padding=2)
43
44 def forward(self, x):
45 x1 = self.pw_block(x)

Callers

nothing calls this directly

Calls 3

point_wise_blockFunction · 0.85
conv_blockFunction · 0.85
__init__Method · 0.45

Tested by

no test coverage detected