MCPcopy Create free account
hub / github.com/Anoise/WTFlib / __init__

Method __init__

LDPS_Graph/layers/Autoformer_EncDec.py:105–109  ·  view source on GitHub ↗
(self, attn_layers, conv_layers=None, norm_layer=None)

Source from the content-addressed store, hash-verified

103 Autoformer encoder
104 """
105 def __init__(self, attn_layers, conv_layers=None, norm_layer=None):
106 super(Encoder, self).__init__()
107 self.attn_layers = nn.ModuleList(attn_layers)
108 self.conv_layers = nn.ModuleList(conv_layers) if conv_layers is not None else None
109 self.norm = norm_layer
110
111 def forward(self, x, attn_mask=None):
112 attns = []

Callers 7

__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45
__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