MCPcopy Create free account
hub / github.com/Xiaobin-Rong/gtcrn / __init__

Method __init__

gtcrn.py:229–237  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

227
228class Encoder(nn.Module):
229 def __init__(self):
230 super().__init__()
231 self.en_convs = nn.ModuleList([
232 ConvBlock(3*3, 16, (1,5), stride=(1,2), padding=(0,2), use_deconv=False, is_last=False),
233 ConvBlock(16, 16, (1,5), stride=(1,2), padding=(0,2), groups=2, use_deconv=False, is_last=False),
234 GTConvBlock(16, 16, (3,3), stride=(1,1), padding=(0,1), dilation=(1,1), use_deconv=False),
235 GTConvBlock(16, 16, (3,3), stride=(1,1), padding=(0,1), dilation=(2,1), use_deconv=False),
236 GTConvBlock(16, 16, (3,3), stride=(1,1), padding=(0,1), dilation=(5,1), use_deconv=False)
237 ])
238
239 def forward(self, x):
240 en_outs = []

Callers

nothing calls this directly

Calls 3

ConvBlockClass · 0.70
GTConvBlockClass · 0.70
__init__Method · 0.45

Tested by

no test coverage detected