mirror of https://github.com/coqui-ai/TTS.git
bug fix
This commit is contained in:
parent
22d62aee5b
commit
703be04993
|
@ -338,8 +338,8 @@ class Decoder(nn.Module):
|
||||||
gain=torch.nn.init.calculate_gain('linear'))
|
gain=torch.nn.init.calculate_gain('linear'))
|
||||||
|
|
||||||
def _reshape_memory(self, memory):
|
def _reshape_memory(self, memory):
|
||||||
B = memory.shape[0]
|
|
||||||
if memory is not None:
|
if memory is not None:
|
||||||
|
B = memory.shape[0]
|
||||||
# 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.contiguous()
|
memory = memory.contiguous()
|
||||||
|
|
Loading…
Reference in New Issue