Skip to content

Commit

Permalink
Fix typo in file_utils.py (#9289)
Browse files Browse the repository at this point in the history
  • Loading branch information
jungwhank authored Dec 24, 2020
1 parent 222dbdb commit 6189ae9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/transformers/file_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -760,7 +760,7 @@ def _prepare_output_docstrings(output_type, config_class):
>>> from transformers import {tokenizer_class}, {model_class}
>>> tokenizer = {tokenizer_class}.from_pretrained('{checkpoint}')
>>> model = {model_class}.from_pretrained('{checkpoint})
>>> model = {model_class}.from_pretrained('{checkpoint}')
>>> inputs = tokenizer("Hello, my dog is cute", return_tensors="pt")
>>> outputs = model(**inputs, labels=inputs["input_ids"])
Expand Down

0 comments on commit 6189ae9

Please sign in to comment.