diff options
| author | Jules Laplace <julescarbon@gmail.com> | 2018-05-15 00:37:52 +0200 |
|---|---|---|
| committer | Jules Laplace <julescarbon@gmail.com> | 2018-05-15 00:37:52 +0200 |
| commit | 543fb3466b75f24bf79ac5658607574fc9b4402e (patch) | |
| tree | 9033a3510344e751127becd9ebed16a3766290a7 /model.py | |
| parent | 59878fa802537b2954ab505e01a4eaec25f23ee7 (diff) | |
lol typo
Diffstat (limited to 'model.py')
| -rw-r--r-- | model.py | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -369,8 +369,10 @@ class PrimedGenerator(Runner): sub_sequence_b = out_sequences[:, i-n : i] # recursive tmp_sub_sequence = tmp_sequences[:, i-n : i] # tmp/output + pj = bottom_frame_size - n for j in range(n): - ratio = (bottom_frame_size-j-1) / (bottom_frame_size-1) + ratio = (pj + j) / (bottom_frame_size-1) + ratio *= ratio a = sub_sequence_a[:, j].float() * (1-ratio) b = sub_sequence_b[:, j].float() * ratio tmp_sub_sequence[:, j] = torch.clamp(a + b, 1, q_levels-1).long() |
