init `durations = None`

This commit is contained in:
Eren Gölge 2021-06-01 14:53:57 +02:00
parent 2e31659dd9
commit c09622459e
1 changed files with 1 additions and 0 deletions

View File

@ -351,6 +351,7 @@ class TrainerTTS:
speaker_ids = None
# compute durations from attention masks
durations = None
if attn_mask is not None:
durations = torch.zeros(attn_mask.shape[0], attn_mask.shape[2])
for idx, am in enumerate(attn_mask):