mirror of
https://github.com/wassname/pytorch-transformer-ts.git
synced 2026-06-27 18:06:14 +08:00
prefix is the full sequence
This commit is contained in:
@@ -411,7 +411,7 @@ class PerceiverARModel(nn.Module):
|
||||
perciever_input = torch.cat((lags, features), dim=-1)
|
||||
|
||||
prefix, x = (
|
||||
perciever_input[:, : self.context_length - 1, ...],
|
||||
perciever_input,
|
||||
perciever_input[:, self.context_length - 1 :, ...],
|
||||
)
|
||||
|
||||
|
||||
+206
-87
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user