MCPcopy Create free account
hub / github.com/BorealisAI/scaleformer / __init__

Method __init__

layers/Autoformer_EncDec.py:224–228  ·  view source on GitHub ↗
(self, layers, norm_layer=None, projection=None)

Source from the content-addressed store, hash-verified

222 Autoformer encoder
223 """
224 def __init__(self, layers, norm_layer=None, projection=None):
225 super(Decoder, self).__init__()
226 self.layers = nn.ModuleList(layers)
227 self.norm = norm_layer
228 self.projection = projection
229
230 def forward(self, x, cross, x_mask=None, cross_mask=None, trend=None):
231 for layer in self.layers:

Callers

nothing calls this directly

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected