mirror of
https://github.com/wassname/pytorch-transformer-ts.git
synced 2026-09-09 11:32:15 +08:00
fix repeated_past_target
This commit is contained in:
+3
-2
@@ -583,8 +583,9 @@ class TFTModel(nn.Module):
|
||||
repeats=self.num_parallel_samples, dim=0
|
||||
)
|
||||
|
||||
repeated_past_target = target.repeat_interleave(
|
||||
repeats=self.num_parallel_samples, dim=0
|
||||
repeated_past_target = (
|
||||
past_target.repeat_interleave(repeats=self.num_parallel_samples, dim=0)
|
||||
/ repeated_scale
|
||||
)
|
||||
repeated_past_selection = past_selection.repeat_interleave(
|
||||
repeats=self.num_parallel_samples, dim=0
|
||||
|
||||
Reference in New Issue
Block a user