mirror of
https://github.com/wassname/pytorch-transformer-ts.git
synced 2026-07-12 18:32:00 +08:00
updated repeated_past_target
This commit is contained in:
@@ -552,6 +552,9 @@ class PerceiverARModel(nn.Module):
|
||||
x = ff(x) + x
|
||||
|
||||
repeated_prefix = torch.cat((repeated_prefix, next_x), dim=1)
|
||||
repeated_past_target = torch.cat(
|
||||
(repeated_past_target, scaled_next_sample), dim=1
|
||||
)
|
||||
params = self.param_proj(x)
|
||||
distr = self.output_distribution(params, scale=repeated_scale)
|
||||
next_sample = distr.sample()
|
||||
|
||||
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user