(self, x)
| 16 | # self.Linear.weight = nn.Parameter((1/self.seq_len)*torch.ones([self.pred_len,self.seq_len])) |
| 17 | |
| 18 | def forward(self, x): |
| 19 | # x: [Batch, Input length, Channel] |
| 20 | seq_last = x[:,-1:,:].detach() |
| 21 | x = x - seq_last |
| 22 | x = self.Linear(x.permute(0,2,1)).permute(0,2,1) |
| 23 | x = x + seq_last |
| 24 | return x # [Batch, Output length, Channel] |
nothing calls this directly
no outgoing calls
no test coverage detected