Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
chenpangpang
transformers
Commits
876a9e08
Unverified
Commit
876a9e08
authored
Dec 01, 2022
by
Yih-Dar
Committed by
GitHub
Dec 01, 2022
Browse files
Fix `PLBart` doctest (#20527)
Co-authored-by:
ydshieh
<
ydshieh@users.noreply.github.com
>
parent
373bfe70
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
src/transformers/models/plbart/modeling_plbart.py
src/transformers/models/plbart/modeling_plbart.py
+1
-1
No files found.
src/transformers/models/plbart/modeling_plbart.py
View file @
876a9e08
...
...
@@ -559,7 +559,7 @@ PLBART_GENERATION_EXAMPLE = r"""
>>> values, predictions = probs.topk(5)
>>> tokenizer.decode(predictions).split()
['
same', 'first
', 'highest', 'result', '
Fib
']
['
first', 'same
', 'highest', 'result', '
number
']
```
"""
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment