mirror of https://github.com/coqui-ai/TTS.git
Data loader bug fix 3
This commit is contained in:
parent
1ff8d6d2b7
commit
a68487f0b8
|
@ -256,13 +256,10 @@ class Decoder(nn.Module):
|
||||||
greedy = not self.training
|
greedy = not self.training
|
||||||
|
|
||||||
if memory is not None:
|
if memory is not None:
|
||||||
print(memory.shape)
|
|
||||||
|
|
||||||
# Grouping multiple frames if necessary
|
# Grouping multiple frames if necessary
|
||||||
if memory.size(-1) == self.memory_dim:
|
if memory.size(-1) == self.memory_dim:
|
||||||
memory = memory.view(B, memory.size(1) // self.r, -1)
|
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),
|
" !! Dimension mismatch {} vs {} * {}".format(memory.size(-1),
|
||||||
self.memory_dim, self.r)
|
self.memory_dim, self.r)
|
||||||
T_decoder = memory.size(1)
|
T_decoder = memory.size(1)
|
||||||
|
|
Loading…
Reference in New Issue