Commit 45d21502 authored by VictorSanh's avatar VictorSanh
Browse files

update doc

parent 98f5c786
......@@ -146,6 +146,7 @@ def openAIGPTLMHeadModel(*args, **kwargs):
# Get the predicted last token
>>> predicted_index = torch.argmax(predictions[0, -1, :]).item()
>>> predicted_token = tokenizer.convert_ids_to_tokens([predicted_index])[0]
'.</w>'
"""
model = OpenAIGPTLMHeadModel.from_pretrained(*args, **kwargs)
return model
......
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