Skip to content

Commit 14dbc37

Browse files
author
ntt123
committed
fix error when batch size = 1
1 parent 6d0635e commit 14dbc37

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

model.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -407,7 +407,7 @@ def forward(self, memory, decoder_inputs, memory_lengths):
407407
mel_output, gate_output, attention_weights = self.decode(
408408
decoder_input)
409409
mel_outputs += [mel_output.squeeze(1)]
410-
gate_outputs += [gate_output.squeeze()]
410+
gate_outputs += [gate_output.squeeze(1)]
411411
alignments += [attention_weights]
412412

413413
mel_outputs, gate_outputs, alignments = self.parse_decoder_outputs(

0 commit comments

Comments
 (0)