Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
jc-audet committed Jul 22, 2024
1 parent 5369050 commit cd82160
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/fairseq2/nn/utils/mask.py
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,6 @@ def _generate_mask(indices: Tensor, max_row_len: int) -> Tensor:

# Set elements corresponding to masked indices to 1.
float_mask.scatter_(1, indices, 1.0)
breakpoint()
if float_mask.sum(1).min() != float_mask.sum(1).max():

indices = [(torch.unique(row), len(row[0])) for row in torch.split(indices, 1, dim=0)]
Expand Down

0 comments on commit cd82160

Please sign in to comment.