Skip to content

Commit

Permalink
🔧 Fix #106
Browse files Browse the repository at this point in the history
  • Loading branch information
dathudeptrai committed Jul 9, 2020
1 parent a9a48a7 commit 84c0041
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tensorflow_tts/models/tacotron2.py
Original file line number Diff line number Diff line change
Expand Up @@ -907,6 +907,10 @@ def inference(self, input_ids, input_lengths, speaker_ids):

mel_outputs = decoder_output + residual_projection

alignment_history = tf.transpose(
final_decoder_state.alignment_history.stack(), [1, 2, 0]
)

return decoder_output, mel_outputs, stop_token_prediction, alignment_history

@tf.function(
Expand Down

0 comments on commit 84c0041

Please sign in to comment.