Fix gpt2 document (#9272)

This commit is contained in:
Xu Song 2020-12-23 18:34:15 +08:00 committed by GitHub
parent cbe63949d7
commit 58e8a7611f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -1036,7 +1036,7 @@ class GPT2DoubleHeadsModel(GPT2PreTrainedModel):
>>> mc_token_ids = torch.tensor([cls_token_location]) # Batch size: 1
>>> outputs = model(input_ids, mc_token_ids=mc_token_ids)
>>> lm_logits = outputs.lm_logits
>>> lm_logits = outputs.logits
>>> mc_logits = outputs.mc_logits
"""