Unverified Commit 7d40901c authored by Bharat Raghunathan's avatar Bharat Raghunathan Committed by GitHub
Browse files

Fix Documentation issue in BertForMaskedLM forward (#3855)

parent b1ff0b2a
...@@ -957,7 +957,7 @@ class BertForMaskedLM(BertPreTrainedModel): ...@@ -957,7 +957,7 @@ class BertForMaskedLM(BertPreTrainedModel):
ltr_lm_loss = loss_fct(prediction_scores.view(-1, self.config.vocab_size), lm_labels.view(-1)) ltr_lm_loss = loss_fct(prediction_scores.view(-1, self.config.vocab_size), lm_labels.view(-1))
outputs = (ltr_lm_loss,) + outputs outputs = (ltr_lm_loss,) + outputs
return outputs # (masked_lm_loss), (ltr_lm_loss), prediction_scores, (hidden_states), (attentions) return outputs # (ltr_lm_loss), (masked_lm_loss), prediction_scores, (hidden_states), (attentions)
@add_start_docstrings( @add_start_docstrings(
......
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