Skip to content

Commit

Permalink
Fixmask (#2538)
Browse files Browse the repository at this point in the history
* revert mask
  • Loading branch information
vince62s authored Dec 18, 2023
1 parent 23f7916 commit 2509d93
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion onmt/modules/multi_headed_attn.py
Original file line number Diff line number Diff line change
Expand Up @@ -469,7 +469,6 @@ def forward(
(key_pad_mask, y), 2
)
key_pad_mask = self.layer_cache[1]["key_pad_mask"]
mask = key_pad_mask.unsqueeze(1)
else:
# Retrieve keys and values from linear layers (training mode).
key = self.maybe_ckpt(self.linear_keys, key)
Expand Down

0 comments on commit 2509d93

Please sign in to comment.