updated repeated_past_target

This commit is contained in:
Kashif Rasul
2022-08-07 20:49:00 -04:00
parent 4b103b9791
commit c1cfd4653f
2 changed files with 81 additions and 79 deletions
+3
View File
@@ -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