Commit e37bd948 authored by taineleau's avatar taineleau Committed by Facebook Github Bot
Browse files

bugfix: passing args

Summary: Pull Request resolved: https://github.com/pytorch/fairseq/pull/711

Differential Revision: D15239618

Pulled By: myleott

fbshipit-source-id: 82f3f79501a13a967324b8a66281cd134bf1ef23
parent a1c997bd
......@@ -228,7 +228,10 @@ class MaskedLMDataset(FairseqDataset):
# mask according to specified probabilities.
masked_blk_one, masked_tgt_one = self._mask_block(
s["block_one"], self.mask_idx, self.pad_idx, token_range)
s["block_one"], self.mask_idx, self.pad_idx, token_range,
masking_ratio=self.masking_ratio, masking_prob=self.masking_prob,
random_token_prob=self.random_token_prob,
)
tokens = np.concatenate([
[self.classif_token_idx], masked_blk_one
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment