Data loader bug fix 3

This commit is contained in:
Eren Golge 2018-03-26 11:08:15 -07:00
parent 1ff8d6d2b7
commit a68487f0b8
1 changed files with 0 additions and 3 deletions

View File

@ -256,13 +256,10 @@ class Decoder(nn.Module):
greedy = not self.training
if memory is not None:
print(memory.shape)
# Grouping multiple frames if necessary
if memory.size(-1) == self.memory_dim:
memory = memory.view(B, memory.size(1) // self.r, -1)
print(memory.shape)
assert memory.size(-1) == self.memory_dim * self.r,\
" !! Dimension mismatch {} vs {} * {}".format(memory.size(-1),
self.memory_dim, self.r)
T_decoder = memory.size(1)