Skip to content

Commit

Permalink
black
Browse files Browse the repository at this point in the history
  • Loading branch information
Jingjing Xu committed Dec 4, 2024
1 parent b50b66e commit 40c369b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion i6_models/parts/best_rq/mask.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ def forward(
mask_idc = np.random.choice(seq_len - min_len, num_mask, replace=False)

for j in mask_idc:
mask[i, j : j+self.mask_length] = True
mask[i, j : j + self.mask_length] = True

tensor[mask] = self.mask_emb.to(tensor.device)

Expand Down

0 comments on commit 40c369b

Please sign in to comment.