Skip to content

Commit

Permalink
fix error when batch size = 1
Browse files Browse the repository at this point in the history
  • Loading branch information
ntt123 committed Feb 10, 2020
1 parent 6d0635e commit 14dbc37
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion model.py
Original file line number Diff line number Diff line change
Expand Up @@ -407,7 +407,7 @@ def forward(self, memory, decoder_inputs, memory_lengths):
mel_output, gate_output, attention_weights = self.decode(
decoder_input)
mel_outputs += [mel_output.squeeze(1)]
gate_outputs += [gate_output.squeeze()]
gate_outputs += [gate_output.squeeze(1)]
alignments += [attention_weights]

mel_outputs, gate_outputs, alignments = self.parse_decoder_outputs(
Expand Down

0 comments on commit 14dbc37

Please sign in to comment.