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

Method forward

layers/Autoformer_EncDec.py:193–203  ·  view source on GitHub ↗
(self, x, cross, x_mask=None, cross_mask=None, trend=None)

Source from the content-addressed store, hash-verified

191 self.projection = projection
192
193 def forward(self, x, cross, x_mask=None, cross_mask=None, trend=None):
194 for layer in self.layers:
195 x, residual_trend = layer(x, cross, x_mask=x_mask, cross_mask=cross_mask)
196 trend = trend + residual_trend
197
198 if self.norm is not None:
199 x = self.norm(x)
200
201 if self.projection is not None:
202 x = self.projection(x)
203 return x, trend

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected