MCPcopy Create free account
hub / github.com/KimMeen/Time-LLM / __init__

Method __init__

layers/Transformer_EncDec.py:55–59  ·  view source on GitHub ↗
(self, attn_layers, conv_layers=None, norm_layer=None)

Source from the content-addressed store, hash-verified

53
54class Encoder(nn.Module):
55 def __init__(self, attn_layers, conv_layers=None, norm_layer=None):
56 super(Encoder, self).__init__()
57 self.attn_layers = nn.ModuleList(attn_layers)
58 self.conv_layers = nn.ModuleList(conv_layers) if conv_layers is not None else None
59 self.norm = norm_layer
60
61 def forward(self, x, attn_mask=None, tau=None, delta=None):
62 # x [B, L, D]

Callers 4

__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected