mirror of
https://github.com/wassname/TTS.git
synced 2026-09-09 11:16:00 +08:00
update regarding torch 1.2
This commit is contained in:
@@ -240,7 +240,7 @@ class Attention(nn.Module):
|
||||
attention_hidden_state, processed_inputs)
|
||||
# apply masking
|
||||
if mask is not None:
|
||||
attention.data.masked_fill_(1 - mask, self._mask_value)
|
||||
attention.data.masked_fill_(torch.bitwise_not(mask), self._mask_value)
|
||||
# apply windowing - only in eval mode
|
||||
if not self.training and self.windowing:
|
||||
attention = self.apply_windowing(attention, inputs)
|
||||
|
||||
Reference in New Issue
Block a user