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

Method __init__

stream/gtcrn_stream.py:240–248  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

238
239class StreamEncoder(nn.Module):
240 def __init__(self):
241 super().__init__()
242 self.en_convs = nn.ModuleList([
243 ConvBlock(3*3, 16, (1,5), stride=(1,2), padding=(0,2), use_deconv=False, is_last=False),
244 ConvBlock(16, 16, (1,5), stride=(1,2), padding=(0,2), groups=2, use_deconv=False, is_last=False),
245 StreamGTConvBlock(16, 16, (3,3), stride=(1,1), padding=(0,1), dilation=(1,1), use_deconv=False),
246 StreamGTConvBlock(16, 16, (3,3), stride=(1,1), padding=(0,1), dilation=(2,1), use_deconv=False),
247 StreamGTConvBlock(16, 16, (3,3), stride=(1,1), padding=(0,1), dilation=(5,1), use_deconv=False)
248 ])
249
250 def forward(self, x, conv_cache, tra_cache):
251 """

Callers

nothing calls this directly

Calls 3

StreamGTConvBlockClass · 0.85
ConvBlockClass · 0.70
__init__Method · 0.45

Tested by

no test coverage detected