Skip to content

Commit 84c0041

Browse files
committed
🔧 Fix #106
1 parent a9a48a7 commit 84c0041

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tensorflow_tts/models/tacotron2.py

+4
Original file line numberDiff line numberDiff line change
@@ -907,6 +907,10 @@ def inference(self, input_ids, input_lengths, speaker_ids):
907907

908908
mel_outputs = decoder_output + residual_projection
909909

910+
alignment_history = tf.transpose(
911+
final_decoder_state.alignment_history.stack(), [1, 2, 0]
912+
)
913+
910914
return decoder_output, mel_outputs, stop_token_prediction, alignment_history
911915

912916
@tf.function(

0 commit comments

Comments
 (0)