mirror of
https://github.com/wassname/TTS.git
synced 2026-09-09 11:16:00 +08:00
Data loader bug fix 2
This commit is contained in:
@@ -256,9 +256,12 @@ 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)
|
||||
|
||||
Reference in New Issue
Block a user