Remove kwargs argument from IBERT MLM forward pass (#16449)

This commit is contained in:
lewtun 2022-03-28 16:37:56 +02:00 committed by GitHub
parent da936942b0
commit c85547af2b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -893,7 +893,6 @@ class IBertForMaskedLM(IBertPreTrainedModel):
output_attentions: Optional[bool] = None,
output_hidden_states: Optional[bool] = None,
return_dict: Optional[bool] = None,
**kwargs,
) -> Union[MaskedLMOutput, Tuple[torch.FloatTensor]]:
r"""
labels (`torch.LongTensor` of shape `(batch_size, sequence_length)`, *optional*):