diff --git a/paddlespeech/t2s/modules/tacotron2/attentions.py b/paddlespeech/t2s/modules/tacotron2/attentions.py index 691139f10..5d1a24845 100644 --- a/paddlespeech/t2s/modules/tacotron2/attentions.py +++ b/paddlespeech/t2s/modules/tacotron2/attentions.py @@ -124,7 +124,7 @@ class AttLoc(nn.Layer): dec_z, att_prev, scaling=2.0, - last_attended_idx=None, + last_attended_idx=-1, backward_window=1, forward_window=3, ): """Calculate AttLoc forward propagation.