mirror of
https://github.com/wassname/pytorch-transformer-ts.git
synced 2026-08-12 12:20:55 +08:00
use scaled target
This commit is contained in:
+2
-3
@@ -579,9 +579,8 @@ class TFTModel(nn.Module):
|
||||
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_target = target.repeat_interleave(
|
||||
repeats=self.num_parallel_samples, dim=0
|
||||
)
|
||||
repeated_past_selection = past_selection.repeat_interleave(
|
||||
repeats=self.num_parallel_samples, dim=0
|
||||
|
||||
Reference in New Issue
Block a user