remove newline

This commit is contained in:
sshleifer 2020-03-05 13:06:35 -05:00
parent 1360dacaa3
commit 14d40584b2

View File

@ -687,7 +687,6 @@ class SelfAttention(nn.Module):
static_kv: bool,
) -> Optional[Tensor]:
# saved key padding masks have shape (bsz, seq_len)
if prev_key_padding_mask is not None and static_kv:
new_key_padding_mask = prev_key_padding_mask
elif prev_key_padding_mask is not None and key_padding_mask is not None: