"docs/source/vscode:/vscode.git/clone" did not exist on "e71f2863d75f936256729bb7456dfb022e3d419a"
Unverified Commit 4f90fc1d authored by Wang Ran (汪然)'s avatar Wang Ran (汪然) Committed by GitHub
Browse files

typo (#20001)

parent c87ae86a
......@@ -568,7 +568,7 @@ class EncoderDecoderModel(PreTrainedModel):
>>> input_ids = tokenizer("This is a really long text", return_tensors="pt").input_ids
>>> labels = tokenizer("This is the corresponding summary", return_tensors="pt").input_ids
>>> outputs = model(input_ids=input_ids, labels=input_ids)
>>> outputs = model(input_ids=input_ids, labels=labels)
>>> loss, logits = outputs.loss, outputs.logits
>>> # save and load from pretrained
......
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