From d19107540bdc82f3767d5b05f7afad1fb40b7b19 Mon Sep 17 00:00:00 2001 From: TianYuan Date: Wed, 22 Feb 2023 21:14:09 +0800 Subject: [PATCH] Update attentions.py --- paddlespeech/t2s/modules/tacotron2/attentions.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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.