mirror of
https://github.com/wassname/TTS.git
synced 2026-09-11 12:00:24 +08:00
teacher forcing with combining
This commit is contained in:
+4
-3
@@ -34,12 +34,13 @@ class Tacotron(nn.Module):
|
||||
encoder_outputs = self.encoder(inputs)
|
||||
|
||||
if self.use_memory_mask:
|
||||
memory_lengths = input_lengths
|
||||
input_lengths = input_lengths
|
||||
else:
|
||||
memory_lengths = None
|
||||
input_lengths = None
|
||||
|
||||
# (B, T', mel_dim*r)
|
||||
mel_outputs, alignments = self.decoder(
|
||||
encoder_outputs, mel_specs, memory_lengths=memory_lengths)
|
||||
encoder_outputs, mel_specs, input_lengths=input_lengths)
|
||||
|
||||
# Post net processing below
|
||||
|
||||
|
||||
Reference in New Issue
Block a user