Skip to content

Commit

Permalink
flowtron.py: removing unused mask_inverse
Browse files Browse the repository at this point in the history
  • Loading branch information
rafaelvalle authored Aug 24, 2020
1 parent 8427157 commit f53066d
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions flowtron.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,8 @@ def forward(self, model_output, gate_target, lengths):
z, log_s_list, gate_pred, mean, log_var, prob = model_output

# create mask for outputs computed on padded data
mask = get_mask_from_lengths(lengths).transpose(0, 1)[..., None]
mask_inverse = ~mask
mask, mask_inverse = mask.float(), mask_inverse.float()
mask = get_mask_from_lengths(lengths).transpose(0, 1)[..., None]
mask = mask.float()
n_mel_dims = z.size(2)
n_elements = mask.sum()
for i, log_s in enumerate(log_s_list):
Expand Down

0 comments on commit f53066d

Please sign in to comment.